[PATCH] usb: gadget: u_ether: synchronize with transmit when stopping queue

2014-06-13 Thread Vicentiu Neagoe
From: Jeff Westfahl 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

[PATCH] usb: gadget: u_ether: synchronize with transmit when stopping queue

2014-05-29 Thread Vicentiu Neagoe
From: Jeff Westfahl 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