]> git.baikalelectronics.ru Git - kernel.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)
commit16c658c15780d1951d55c5b4370d7c95748ac895
tree2528269def13c7b5d6fd89a6a8e6eb7e1baf7764
parent22f62d0b6303106f94ddf35f28c678da087f25fc
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: 6de1b367104f ("[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