net: phy: Add locks to ethtool functions
authorAndrew Lunn <andrew@lunn.ch>
Fri, 17 Feb 2023 03:07:14 +0000 (04:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2023 10:04:22 +0000 (10:04 +0000)
commit2f987d486610752b364fd238fa3bb1a142d80b44
tree7d5796d139f3fcbc4fe1e0997ee5ce0d900c7ae3
parent3365777a6a2243f1cca5a441f2c89002d16fc580
net: phy: Add locks to ethtool functions

The phydev lock should be held while accessing members of phydev,
or calling into the driver.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c