]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: call _mv88e6xxx_stats_wait with SMI lock held
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 3 Aug 2015 13:17:44 +0000 (09:17 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2015 22:46:09 +0000 (15:46 -0700)
commit9c9e38e17882994674b8acea43fbb5d5b6edc14b
tree7d33adae616121265e969337ea9f0eea853813f9
parent0f406d1ef4d70a21910d17ea3ac664f18e2d0d84
net: dsa: mv88e6xxx: call _mv88e6xxx_stats_wait with SMI lock held

At switch setup, _mv88e6xxx_stats_wait was called without holding the
SMI mutex. Fix this by requesting the lock for this call.

Also, return the _mv88e6xxx_stats_wait code, since it may fail.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c