summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorLuo bin <luobin9@huawei.com>2020-09-10 22:04:40 +0800
committerDavid S. Miller <davem@davemloft.net>2020-09-11 17:23:57 -0700
commita1b80e0143a1b878f8e21d82fd55f3f46f0014be (patch)
tree324eb3596453fbf7c42b8af45083a31775a0c0fb /init
parentb5b73b26b3ca34574124ed7ae9c5ba8391a7f176 (diff)
downloadlinux-a1b80e0143a1b878f8e21d82fd55f3f46f0014be.tar.bz2
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions