Xie He
5acd0cfbfb
net: lapbether: Prevent racing when checking whether the netif is running
...
There are two "netif_running" checks in this driver. One is in
"lapbeth_xmit" and the other is in "lapbeth_rcv". They serve to make
sure that the LAPB APIs called in these functions are called before
"lapb_unregister" is called by the "ndo_stop" function.
However, these "netif_running" checks are unreliable, because it's
possible that immediately after "netif_running" returns true, "ndo_stop"
is called (which causes "lapb_unregister" to be called).
This patch adds locking to make sure "lapbeth_xmit" and "lapbeth_rcv" can
reliably check and ensure the netif is running while doing their work.
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Xie He <xie.he.0141@gmail.com >
Acked-by: Martin Schiller <ms@dev.tdt.de >
Signed-off-by: David S. Miller <davem@davemloft.net >
2021-03-16 11:32:28 -07:00
..
2021-02-24 10:25:37 -08:00
2021-02-25 12:03:13 -08:00
2021-03-15 12:43:10 -07:00
2021-02-26 09:41:03 -08:00
2021-03-01 17:40:38 +01:00
2021-03-03 06:48:44 -07:00
2021-02-20 21:28:04 -08:00
2021-02-24 10:25:37 -08:00
2021-03-07 13:24:44 -08:00
2021-02-26 10:28:35 -08:00
2021-02-22 14:11:36 -08:00
2021-02-24 10:35:29 -08:00
2021-03-02 22:41:23 +11:00
2021-02-22 14:44:39 -08:00
2021-02-27 08:07:12 -08:00
2021-02-15 17:02:04 +01:00
2021-02-23 15:05:10 -08:00
2021-02-24 21:05:28 +05:30
2021-02-15 10:06:58 +01:00
2021-02-09 12:16:20 +01:00
2021-02-24 10:25:37 -08:00
2021-03-08 11:59:17 +01:00
2021-03-05 11:13:22 +10:00
2021-02-23 14:52:22 -08:00
2021-02-26 09:41:00 -08:00
2021-02-22 10:05:12 -08:00
2021-02-09 11:36:50 -06:00
2021-02-22 14:27:07 -08:00
2021-02-26 11:47:42 +01:00
2021-02-22 09:52:55 -08:00
2021-02-28 15:48:25 -08:00
2021-02-22 09:39:11 -08:00
2021-03-05 14:15:22 -04:00
2021-02-23 14:56:23 -08:00
2021-03-05 12:26:24 -08:00
2021-02-09 09:48:23 +01:00
2021-02-15 15:41:56 +01:00
2021-03-11 18:23:55 -08:00
2021-02-26 13:56:40 -08:00
2021-02-14 21:27:24 -07:00
2021-02-22 13:34:27 -06:00
2021-03-05 13:25:23 -08:00
2021-02-22 17:45:02 -08:00
2021-02-24 10:25:37 -08:00
2021-02-24 10:35:29 -08:00
2021-03-02 22:41:23 +11:00
2021-02-26 13:59:32 -08:00
2021-02-21 13:57:08 -08:00
2021-03-16 11:32:28 -07:00
2021-02-24 10:25:37 -08:00
2021-02-23 14:12:53 -06:00
2021-02-24 09:35:54 -08:00
2021-03-05 13:41:03 +01:00
2021-02-05 11:25:52 +01:00
2021-02-24 10:25:37 -08:00
2021-02-18 12:31:08 +05:30
2021-02-25 09:56:08 -08:00
2021-02-26 13:54:43 -08:00
2021-02-22 10:31:29 -08:00
2021-02-10 10:39:23 +01:00
2021-02-26 10:28:35 -08:00
2021-02-25 12:03:13 -08:00
2021-03-01 17:43:29 +01:00
2021-03-12 17:09:34 -08:00
2021-02-25 12:23:49 -08:00
2021-02-22 09:29:42 -08:00
2021-02-11 12:52:18 -06:00
2021-02-26 10:28:35 -08:00
2021-02-27 08:07:12 -08:00
2021-03-09 17:15:56 -08:00
2021-03-07 13:24:44 -08:00
2021-02-26 14:16:06 -08:00
2021-03-02 15:33:00 +01:00
2021-02-22 14:34:00 -08:00
2021-02-12 12:26:46 +01:00
2021-03-10 13:30:36 -08:00
2021-02-28 11:51:20 -08:00
2021-02-09 16:10:49 +01:00
2021-02-22 09:39:11 -08:00
2021-02-09 13:00:07 +01:00
2021-03-02 22:41:23 +11:00
2021-02-09 12:25:32 +01:00
2021-02-25 10:17:31 -08:00
2021-02-23 07:52:59 -05:00
2021-02-24 10:43:40 -08:00
2021-02-25 12:21:08 -08:00
2021-02-25 12:10:22 -08:00
2021-02-09 10:58:19 +01:00
2021-02-26 09:50:09 -08:00
2021-02-09 12:15:07 +01:00
2021-02-24 10:25:37 -08:00
2021-02-26 10:04:45 -08:00
2021-02-16 20:36:38 -08:00
2021-02-24 10:35:29 -08:00