Patch "mfd: core: Fix device reference leak in mfd_clone_cell" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
mfd: core: Fix device reference leak in mfd_clone_cell
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mfd-core-fix-device-reference-leak-in-mfd_clone_cell.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
722f191080de641f023feaa7d5648caf377844f5Mon Sep 17 00:00:00 2001
From: Johan Hovold <[email protected]>
Date: Tue, 1 Nov 2016 11:38:18 +0100
Subject: mfd: core: Fix device reference leak in mfd_clone_cell
From: Johan Hovold <[email protected]>
commit 722f191080de641f023feaa7d5648caf377844f5 upstream.
Make sure to drop the reference taken by bus_find_device_by_name() before returning from mfd_clone_cell().
--- drivers/mfd/mfd-core.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mfd/mfd-core.c +2 -0
@@ -354,6 +354,8 @@ int mfd_clone_cell(const char *cell, con clones[i]); } +put_device (dev); +return 0 ; }EXPORT_SYMBOL (mfd_clone_cell);
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/mfd-core-fix-device-reference-leak-in-mfd_clone_cell.patch queue-4.4/pm-sleep-fix-device-reference-leak-in-test_suspend.patch queue-4.4/uwb-fix-device-reference-leaks.patch