Messages in this thread | | | Date | Sat, 14 Dec 2013 09:25:45 -0800 | From | Greg Kroah-Hartman <> | Subject | Re: [PATCH 1/4] net: phy: call put_device on device_register() failure |
| |
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 <grant.likely@secretlab.ca> > Signed-off-by: Levente Kurusa <levex@linux.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| |