]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hinic: fix the bug of clearing event queue
authorLuo bin <luobin9@huawei.com>
Fri, 20 Mar 2020 23:13:17 +0000 (23:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 14:11:49 +0000 (16:11 +0200)
commit36c97d82f0a005898c44c1066f59cb1f189f18b0
tree7337357b5bda000ebc180b4a4dd10ebd6efceeab
parent1deeb3b2eb5c87d7211ba02ef295870d301b4f6e
hinic: fix the bug of clearing event queue

[ Upstream commit 614eaa943e9fc3fcdbd4aa0692ae84973d363333 ]

should disable eq irq before freeing it, must clear event queue
depth in hw before freeing relevant memory to avoid illegal
memory access and update consumer idx to avoid invalid interrupt

Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c