mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
NET: phy_device, fix lock imbalance
Don't forget to unlock a mutex in phy_scan_fixups on a fail path. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ee686ca919
commit
bc23283c7b
1 changed files with 3 additions and 1 deletions
|
@ -134,8 +134,10 @@ int phy_scan_fixups(struct phy_device *phydev)
|
|||
|
||||
err = fixup->run(phydev);
|
||||
|
||||
if (err < 0)
|
||||
if (err < 0) {
|
||||
mutex_unlock(&phy_fixup_lock);
|
||||
return err;
|
||||
}
|
||||
}
|
||||
}
|
||||
mutex_unlock(&phy_fixup_lock);
|
||||
|
|
Loading…
Reference in a new issue