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-28 21:17:56 +02:00
2020-09-04 13:19:19 -07:00
2020-08-02 18:26:51 +03:00
2020-08-28 16:38:29 -07:00
2020-08-15 08:18:22 -07:00
2020-09-04 12:12:39 -07:00
2020-07-27 11:49:37 +02:00
2020-09-04 11:59:44 -07:00
2020-08-26 10:44:15 -07:00
2020-08-29 12:37:00 -07:00
2020-08-05 19:24:27 -07:00
2020-09-03 08:22:16 -07: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-09-04 13:04:51 -07:00
2020-08-14 16:00:09 -07:00
2020-09-01 14:12:44 -07:00
2020-09-03 08:22:16 -07:00
2020-08-26 10:58:20 -07:00
2020-08-30 10:51:03 -07:00
2020-08-30 10:56:12 -07:00
2020-08-29 12:44:30 -07:00