ar71xx: fix NULL pointer dereference in the ethernet driver
SVN-Revision: 18755
This commit is contained in:
parent
95fa070202
commit
8956009fa6
@ -309,9 +309,11 @@ int ag71xx_phy_connect(struct ag71xx *ag)
|
||||
}
|
||||
|
||||
/* Reset the mdio bus explicitly */
|
||||
if (ag->mii_bus->reset) {
|
||||
mutex_lock(&ag->mii_bus->mdio_lock);
|
||||
ag->mii_bus->reset(ag->mii_bus);
|
||||
mutex_unlock(&ag->mii_bus->mdio_lock);
|
||||
}
|
||||
|
||||
if (pdata->phy_mask)
|
||||
return ag71xx_phy_connect_multi(ag);
|
||||
|
Loading…
Reference in New Issue
Block a user