aboutsummaryrefslogtreecommitdiff
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorRobert Hancock <hancock@sedsystems.ca>2019-06-07 10:42:36 -0600
committerDavid S. Miller <davem@davemloft.net>2019-06-09 19:25:59 -0700
commit2158e856f56bb762ef90f3ec244d41a519826f75 (patch)
tree50eb78dea2a7df27e52f863b4c2a288ac4e54e9f /net/ipv6/tcp_ipv6.c
parent257c25598584f9f7aaccbcd7b9a6faf23aec3156 (diff)
downloadlinux-2158e856f56bb762ef90f3ec244d41a519826f75.tar.gz
linux-2158e856f56bb762ef90f3ec244d41a519826f75.tar.bz2
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/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions