Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Several cases of bug fixes in 'net' overlapping other changes in 'net-next-. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -724,6 +724,7 @@ struct phy_device *phy_connect(struct net_device *dev, const char *bus_id,
|
||||
phydev = to_phy_device(d);
|
||||
|
||||
rc = phy_connect_direct(dev, phydev, handler, interface);
|
||||
put_device(d);
|
||||
if (rc)
|
||||
return ERR_PTR(rc);
|
||||
|
||||
@@ -956,6 +957,7 @@ struct phy_device *phy_attach(struct net_device *dev, const char *bus_id,
|
||||
phydev = to_phy_device(d);
|
||||
|
||||
rc = phy_attach_direct(dev, phydev, phydev->dev_flags, interface);
|
||||
put_device(d);
|
||||
if (rc)
|
||||
return ERR_PTR(rc);
|
||||
|
||||
|
Reference in New Issue
Block a user