diff options
author | 2019-06-07 10:42:36 -0600 | |
---|---|---|
committer | 2019-06-09 19:25:59 -0700 | |
commit | 2158e856f56bb762ef90f3ec244d41a519826f75 (patch) | |
tree | 50eb78dea2a7df27e52f863b4c2a288ac4e54e9f /net/core/skbuff.c | |
parent | net: sfp: Stop SFP polling and interrupt handling during shutdown (diff) | |
download | wireguard-linux-2158e856f56bb762ef90f3ec244d41a519826f75.tar.xz wireguard-linux-2158e856f56bb762ef90f3ec244d41a519826f75.zip |
net: sfp: add mutex to prevent concurrent state checks
sfp_check_state can potentially be called by both a threaded IRQ handler
and delayed work. If it is concurrently called, it could result in
incorrect state management. Add a st_mutex to protect the state - this
lock gets taken outside of code that checks and handle state changes, and
the existing sm_mutex nests inside of it.
Suggested-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/skbuff.c')
0 files changed, 0 insertions, 0 deletions