Thread (1 message) 1 message, 1 author, 2013-12-14

Re: [PATCH 1/4] net: phy: call put_device on device_register() failure

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2013-12-14 19:27:04
Also in: lkml

On Fri, Dec 13, 2013 at 07:39:53PM +0100, Levente Kurusa wrote:
It is required to call put_device() if device_register() fails,
so that we give up the last reference to the device. Calling put_device
allows for mdiobus_release to be executed, kfreeing the bus.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Grant Likely <redacted>
Signed-off-by: Levente Kurusa <redacted>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help