* Patch "pwm: Fix device reference leak" has been added to the 4.8-stable tree
@ 2016-12-05 14:58 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2016-12-05 14:58 UTC (permalink / raw)
To: johan, gregkh, thierry.reding; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
pwm: Fix device reference leak
to the 4.8-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:
pwm-fix-device-reference-leak.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 0e1614ac84f1719d87bed577963bb8140d0c9ce8 Mon Sep 17 00:00:00 2001
From: Johan Hovold <johan@kernel.org>
Date: Tue, 1 Nov 2016 11:46:39 +0100
Subject: pwm: Fix device reference leak
From: Johan Hovold <johan@kernel.org>
commit 0e1614ac84f1719d87bed577963bb8140d0c9ce8 upstream.
Make sure to drop the reference to the parent device taken by
class_find_device() after "unexporting" any children when deregistering
a PWM chip.
Fixes: 0733424c9ba9 ("pwm: Unexport children before chip removal")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/pwm/sysfs.c | 2 ++
1 file changed, 2 insertions(+)
--- a/drivers/pwm/sysfs.c
+++ b/drivers/pwm/sysfs.c
@@ -425,6 +425,8 @@ void pwmchip_sysfs_unexport_children(str
if (test_bit(PWMF_EXPORTED, &pwm->flags))
pwm_unexport_child(parent, pwm);
}
+
+ put_device(parent);
}
static int __init pwm_sysfs_init(void)
Patches currently in stable-queue which might be from johan@kernel.org are
queue-4.8/pwm-fix-device-reference-leak.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-12-05 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-05 14:58 Patch "pwm: Fix device reference leak" has been added to the 4.8-stable tree gregkh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.