[PATCH] bus: vexpress-config: fix device reference leak
Pawel Moll
pawel.moll at arm.com
Fri Nov 4 04:42:26 PDT 2016
On Tue, 2016-11-01 at 11:43 +0100, Johan Hovold wrote:
> Make sure to drop the reference to the parent device taken by
> class_find_device() after populating the bus.
>
> Fixes: 3b9334ac835b ("mfd: vexpress: Convert custom func API to
> regmap")
> Signed-off-by: Johan Hovold <johan at kernel.org>
You're right. May I ask how did you figure it out? The get_device()
happening in class_find_device() is a bit obscure, so have you simply
followed places where it's being used or used some static (?) analysis
tool? If the latter, I'd be very curios to hear what was it :-)
Acked-by: Pawel Moll <pawel.moll at arm.com>
Thanks!
Pawel
More information about the linux-arm-kernel
mailing list