Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc23283c authored by Jiri Slaby's avatar Jiri Slaby Committed by David S. Miller
Browse files

NET: phy_device, fix lock imbalance



Don't forget to unlock a mutex in phy_scan_fixups on a fail path.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ee686ca9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -134,10 +134,12 @@ 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);

	return 0;