]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Fix deadlock by double lock
authorAndrew Lunn <andrew@lunn.ch>
Thu, 4 Jun 2015 23:10:09 +0000 (01:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Jun 2015 19:19:22 +0000 (12:19 -0700)
commitb18f85d79950567f762aff169fb0480a599dfd6e
tree9662d8e2475b9a8f3190f75c5a6aa191767778c9
parenteb37f9b1bed1ef79251d7bc3aeffb266a0dbe2e7
net: dsa: mv88e6xxx: Fix deadlock by double lock

ethtool -S on a DSA interface can deadlock for some switches because
the same lock is taken twice. Use the register read function which
expects the lock to be already held.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Fixes: 8e7b4965ecbf ("net: dsa: mv88e6xxx: Replace stats mutex with SMI mutex")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c