diff options
author | Luo bin <luobin9@huawei.com> | 2020-09-10 22:04:40 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-11 17:23:57 -0700 |
commit | a1b80e0143a1b878f8e21d82fd55f3f46f0014be (patch) | |
tree | 324eb3596453fbf7c42b8af45083a31775a0c0fb /fs/kernfs | |
parent | b5b73b26b3ca34574124ed7ae9c5ba8391a7f176 (diff) |
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 'fs/kernfs')
0 files changed, 0 insertions, 0 deletions