]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Nov 2016 09:05:58 +0000 (20:05 +1100)
commitfe0f3168169f7c34c29b0cf0c489f126a7f29643
tree2528269def13c7b5d6fd89a6a8e6eb7e1baf7764
parent9e4f51bdaf880208869aa001ee94a49de4b28d27
powerpc/ibmebus: Fix device reference leaks in sysfs interface

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>
arch/powerpc/kernel/ibmebus.c