From: Johan Hovold Date: Tue, 1 Nov 2016 15:26:00 +0000 (+0100) Subject: powerpc/ibmebus: Fix device reference leaks in sysfs interface X-Git-Tag: v3.2.87~191 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4116f13a1e56af855431fe88f687bf172758f6c6;p=pandora-kernel.git 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 Signed-off-by: Michael Ellerman Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed