net-phy-call-put_device-on-device_register-failure.patch removed from -mm tree
Subsystems (2)
Subject: [merged] net-phy-call-put_device-on-device_register-failure.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 31 Jan 2014 11:16:01 -0800
The patch titled
Subject: drivers/net/phy/mdio_bus.c: call put_device on device_register() failure
has been removed from the -mm tree. Its filename was
net-phy-call-put_device-on-device_register-failure.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Levente Kurusa <[email protected]>
Subject: 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.
---
drivers/net/phy/mdio_bus.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/phy/mdio_bus.c renamed from drivers/net/phy/mdio_bus.c~net-phy-call-put_device-on-device_register-failure +1 -0
@@ -150,6 +150,7 @@ int mdiobus_register(struct mii_bus *bus err =device_register (&bus->dev);if (err) {pr_err ("mii_bus %s failed to register\n" , bus->id); +put_device (&bus->dev);return -EINVAL ; }
_
Patches currently in -mm which might be from [email protected] are
origin.patch
w1-call-put_device-if-device_register-fails.patch