Levente Kurusa 0c692d0784 drivers/net/phy/mdio_bus.c: call put_device on device_register() failure
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.

Signed-off-by: Levente Kurusa <levex@linux.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: David Daney <david.daney@cavium.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-01-30 16:56:54 -08:00
..
2012-06-11 16:58:24 -07:00
2013-12-18 00:49:02 -05:00
2013-11-07 15:37:09 -05:00
2013-12-18 00:49:02 -05:00
2013-11-07 15:37:09 -05:00
2012-06-11 16:58:24 -07:00
2014-01-19 19:55:50 -08:00
2012-12-07 14:26:15 -05:00
2013-11-28 18:30:54 -05:00