Jeff Westfahl
a923207637
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 <jeff.westfahl@ni.com>
Tested-by: Jaeden Amero <jaeden.amero@ni.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-06-19 10:06:46 -05:00
..
2013-12-20 09:51:24 -06:00
2014-01-08 15:01:39 -08:00
2014-04-30 11:59:06 -05:00
2013-08-02 15:17:03 +03:00
2014-05-14 09:23:26 -05:00
2014-02-19 13:47:12 -06:00
2014-02-18 10:34:54 -06:00
2013-09-17 10:38:52 -05:00
2014-05-27 15:58:57 -07:00
2014-05-14 09:39:51 -05:00
2014-05-14 09:39:25 -05:00
2014-05-27 15:58:57 -07:00
2014-01-08 15:01:39 -08:00
2013-07-25 20:35:23 +03:00
2013-08-30 11:10:36 -07:00
2013-12-12 13:43:36 -06:00
2013-09-17 11:06:50 -05:00
2014-05-23 11:28:21 +09:00
2013-11-26 13:41:32 -06:00
2013-12-17 13:17:42 -06:00
2013-12-17 13:17:43 -06:00
2013-10-10 10:24:53 -05:00
2014-02-14 08:14:11 +01:00
2013-12-17 13:17:43 -06:00
2013-12-17 13:17:43 -06:00
2013-12-17 13:17:44 -06:00
2014-06-19 08:52:14 -05:00
2013-12-17 13:17:44 -06:00
2013-12-17 13:17:44 -06:00
2014-04-21 14:07:29 -05:00
2013-08-09 16:34:19 +03:00
2014-05-15 10:30:31 -05:00
2014-05-14 09:23:27 -05:00
2013-07-30 11:18:46 +03:00
2014-01-08 15:01:39 -08:00
2014-05-23 11:28:21 +09:00
2014-05-14 09:23:28 -05:00
2013-12-12 13:43:39 -06:00
2013-11-26 13:47:41 -06:00
2014-01-08 15:01:39 -08:00
2014-05-14 09:23:30 -05:00
2013-12-23 19:26:13 -06:00
2013-07-30 11:18:46 +03:00
2014-05-27 16:25:32 -07:00
2014-05-28 11:35:41 -07:00
2014-04-05 13:20:43 -07:00
2014-05-14 09:23:29 -05:00
2014-04-24 13:12:43 -07:00
2013-10-10 10:24:10 -05:00
2013-12-20 09:51:24 -06:00
2014-05-14 09:23:29 -05:00
2014-01-08 15:01:39 -08:00
2013-12-17 13:17:41 -06:00
2014-05-28 11:35:41 -07:00
2014-05-28 11:35:41 -07:00
2013-12-17 13:17:41 -06:00
2014-01-08 15:01:39 -08:00
2013-12-17 13:17:41 -06:00
2014-03-07 16:47:36 -08:00
2014-01-08 15:01:39 -08:00
2013-12-17 13:17:41 -06:00
2014-05-14 09:23:29 -05:00
2014-05-23 11:28:21 +09:00
2014-05-14 09:23:31 -05:00
2014-02-18 10:52:53 -06:00
2014-06-12 10:30:18 -07:00
2013-11-25 10:56:33 -06:00
2014-06-03 12:57:53 -07:00
2014-06-19 10:06:46 -05:00
2013-12-12 13:43:37 -06:00
2014-04-21 14:07:12 -05:00
2014-05-14 09:37:27 -05:00
2014-03-05 14:40:11 -06:00
2014-05-14 09:38:16 -05:00
2014-05-14 09:38:58 -05:00
2014-02-28 16:31:00 -08:00
2013-08-09 16:34:13 +03:00
2014-05-12 12:34:47 -05:00
2014-01-08 15:01:39 -08:00
2014-05-15 11:07:56 -05:00
2014-04-16 10:11:45 -05:00