aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJeff Westfahl <[email protected]>2014-05-29 09:49:41 +0300
committerFelipe Balbi <[email protected]>2014-06-19 10:06:46 -0500
commita9232076374334ca2bc2a448dfde96d38a54349a (patch)
treefc5be5559891d8aaf0b4bfeb8fc395f63456162d /net/unix/af_unix.c
parent02dae36aa649a66c5c6181157ddd806e7b4913fc (diff)
usb: gadget: u_ether: synchronize with transmit when stopping queue
When disconnecting, it's possible that another thread has already made it into eth_start_xmit before we call netif_stop_queue. This can lead to a crash as eth_start_xmit tries to use resources that gether_disconnect is freeing. Use netif_tx_lock/unlock around netif_stop_queue to ensure no threads are executing during the remainder of gether_disconnect. Signed-off-by: Jeff Westfahl <[email protected]> Tested-by: Jaeden Amero <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions