commit | e0a7328fad9979104f73e19bedca821ef3262ae1 | [log] [tgz] |
---|---|---|
author | Andrew Lunn <andrew@lunn.ch> | Fri Jan 11 00:15:21 2019 +0100 |
committer | David S. Miller <davem@davemloft.net> | Tue Jan 15 21:51:19 2019 -0800 |
tree | cda417e2b65abbba239f6911f0ade3ac0ec2b70d | |
parent | 8cbcdc1a51999ca81db2956608b917aacd28d837 [diff] |
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: 424ca4c55121 ("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>