diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2018-11-07 05:06:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-07 20:42:18 +0100 |
commit | 8b0195a30585fefd4c181881077b4181670ca85d (patch) | |
tree | 8007bd934f9a4b90795951bfe24d25cf8a421ece /lib/test_rhashtable.c | |
parent | net: hns3: add error handler for hclge_reset() (diff) | |
download | linux-8b0195a30585fefd4c181881077b4181670ca85d.tar.xz linux-8b0195a30585fefd4c181881077b4181670ca85d.zip |
net: hns3: fix for cmd queue memory not freed problem during reset
It is not necessary to reallocate the descriptor and remap the
descriptor memory in reset process, otherwise it may cause memory
not freed problem.
Also, this patch initializes the cmd queue's spinlocks in
hclgevf_alloc_cmd_queue, and take the spinlocks when reinitializing
cmd queue' registers.
Fixes: fedd0c15d288 ("net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_rhashtable.c')
0 files changed, 0 insertions, 0 deletions