]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: fix ethtool -A with attached PHYs
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 23 Jun 2020 16:47:23 +0000 (17:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 03:53:28 +0000 (20:53 -0700)
commit0a2204e01d2a1b42334a0f696e62d3e604ac3523
tree947e5cfd1b0fec2114b4ce39859a99d07aa3b9fa
parentfeaae454e18242bfa6e5530811501a198a4776a9
net: phylink: fix ethtool -A with attached PHYs

Fix a phylink's ethtool set_pauseparam support deadlock caused by phylib
interacting with phylink: we must not hold the state lock while calling
phylib functions that may call into phylink_phy_change().

Fixes: b1c0d0c47085 ("net: phylink: allow ethtool -A to change flow control advertisement")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c