]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell: Fix deadlock from wrong locking
authorAndrew Lunn <andrew@lunn.ch>
Thu, 10 Jan 2019 23:15:21 +0000 (00:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jan 2019 05:51:19 +0000 (21:51 -0800)
commit4952a26807711cf3ce80bde136503bf42eabf8d2
treecda417e2b65abbba239f6911f0ade3ac0ec2b70d
parent8b496f21f59fdfb6f07505d8459e0479d7f5505f
net: phy: marvell: Fix deadlock from wrong locking

m88e1318_set_wol() takes the lock as part of phy_select_page(). Don't
take the lock again with phy_read(), use the unlocked __phy_read().

Fixes: e97d3aab0134 ("net: phy: marvell: fix paged access races")
Reported-by: Åke Rehnman <ake.rehnman@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c