]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc/ibmebus: Fix device reference leaks in sysfs interface
authorJohan Hovold <johan@kernel.org>
Tue, 1 Nov 2016 15:26:00 +0000 (16:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:18:08 +0000 (20:18 +0100)
commitdcd15c20c2088e7d0a910f74c706dd7870dc7f62
tree9e53758895e02a0b2fba6df744cdc6cbd2151660
parent25bba7152f2afc3e9517a53f3aa934fbaa68cd68
powerpc/ibmebus: Fix device reference leaks in sysfs interface

commit fe0f3168169f7c34c29b0cf0c489f126a7f29643 upstream.

Make sure to drop any reference taken by bus_find_device() in the sysfs
callbacks that are used to create and destroy devices based on
device-tree entries.

Fixes: 6bccf755ff53 ("[POWERPC] ibmebus: dynamic addition/removal of adapters, some code cleanup")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/ibmebus.c