]> git.karo-electronics.de Git - linux-beck.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:18:08 +0000 (20:18 +0100)
commit25bba7152f2afc3e9517a53f3aa934fbaa68cd68
treea163259c40f8439ab1958be83f73a835724b3bb5
parentae4c24b2d58492d0da72b93aca9cd2f3ed48c69e
powerpc/ibmebus: Fix further device reference leaks

commit 815a7141c4d1b11610dccb7fcbb38633759824f2 upstream.

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

Fixes: 55347cc9962f ("[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/ibmebus.c