]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ibmebus: Fix further device reference leaks
authorJohan Hovold <johan@kernel.org>
Tue, 1 Nov 2016 15:26:01 +0000 (16:26 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Nov 2016 09:05:58 +0000 (20:05 +1100)
commiteca07f9ff793346ae13de689fcc21ad0e16faaed
treefa8436f7755d4f36457bf38dcd032b0d6777d7ef
parent16c658c15780d1951d55c5b4370d7c95748ac895
powerpc/ibmebus: Fix further device reference leaks

Make sure to drop any reference taken by bus_find_device() when creating
devices during init and driver registration.

Fixes: 54a019f638e5 ("[POWERPC] ibmebus: Add device creation and bus probing based on of_device")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/ibmebus.c