Luo bin
a1b80e0143
hinic: fix rewaking txq after netif_tx_disable
...
When calling hinic_close in hinic_set_channels, all queues are
stopped after netif_tx_disable, but some queue may be rewaken in
free_tx_poll by mistake while drv is handling tx irq. If one queue
is rewaken core may call hinic_xmit_frame to send pkt after
netif_tx_disable within a short time which may results in accessing
memory that has been already freed in hinic_close. So we call
napi_disable before netif_tx_disable in hinic_close to fix this bug.
Fixes: 2eed5a8b614b ("hinic: add set_channels ethtool_ops support")
Signed-off-by: Luo bin <luobin9@huawei.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-11 17:23:57 -07:00
..
2020-08-26 10:50:50 -07:00
2020-08-28 21:17:56 +02:00
2020-07-29 17:05:44 +02:00
2020-09-04 13:19:19 -07:00
2020-09-04 21:42:57 -07:00
2020-08-23 17:36:59 -05:00
2020-08-28 13:23:31 -07:00
2020-08-02 18:26:51 +03:00
2020-08-28 16:38:29 -07:00
2020-07-31 15:11:52 -07:00
2020-08-23 17:36:59 -05:00
2020-08-30 15:53:44 -07:00
2020-08-15 08:18:22 -07:00
2020-08-23 17:36:59 -05:00
2020-09-01 21:15:00 +02:00
2020-08-26 12:41:53 +02:00
2020-08-30 15:53:44 -07:00
2020-08-20 11:43:18 -06:00
2020-07-30 17:22:58 +09:00
2020-09-04 12:12:39 -07:00
2020-08-10 19:07:44 -07:00
2020-08-30 10:47:23 -07:00
2020-08-23 17:36:59 -05:00
2020-08-30 11:56:54 -07:00
2020-07-27 11:49:37 +02:00
2020-08-23 17:36:59 -05:00
2020-09-04 11:59:44 -07:00
2020-07-29 16:58:08 +02:00
2020-09-02 12:55:46 -07:00
2020-08-23 17:36:59 -05:00
2020-08-26 10:44:15 -07:00
2020-08-29 12:37:00 -07:00
2020-08-23 17:36:59 -05:00
2020-08-29 13:13:44 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-26 12:41:53 +02:00
2020-08-26 14:02:24 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-05 11:43:47 -07:00
2020-08-23 17:36:59 -05:00
2020-08-30 11:56:54 -07:00
2020-08-23 17:36:59 -05:00
2020-08-05 19:24:27 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-14 19:56:57 -07:00
2020-09-02 13:38:40 -04:00
2020-09-03 08:22:16 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-28 10:15:33 -07:00
2020-08-26 10:50:50 -07:00
2020-08-31 11:22:57 -07:00
2020-07-31 14:38:12 +02:00
2020-08-10 18:20:04 -07:00
2020-08-23 17:36:59 -05:00
2020-09-11 17:23:57 -07:00
2020-09-03 18:50:48 -07:00
2020-08-23 17:36:59 -05:00
2020-08-17 14:47:38 -06:00
2020-09-04 13:04:51 -07:00
2020-07-29 17:12:09 +02:00
2020-08-19 16:30:57 -06:00
2020-09-01 19:44:20 +02:00
2020-08-12 12:41:15 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-09 12:52:28 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-06 11:55:43 -07:00
2020-08-23 17:36:59 -05:00
2020-08-19 16:23:22 -07:00
2020-08-14 16:00:09 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-09-10 13:31:10 -07:00
2020-09-01 14:12:44 -07:00
2020-08-14 19:56:57 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-09-03 08:22:16 -07:00
2020-08-23 17:36:59 -05:00
2020-09-04 12:49:03 -07:00
2020-08-23 17:36:59 -05:00
2020-08-26 10:58:20 -07:00
2020-08-30 10:51:03 -07:00
2020-08-26 08:13:59 -04:00
2020-08-23 17:36:59 -05:00
2020-09-03 18:50:48 -07:00
2020-08-30 10:56:12 -07:00
2020-08-14 19:56:57 -07:00
2020-08-23 17:36:59 -05:00
2020-08-29 12:44:30 -07:00