From: wenglianfa wenglianfa@huawei.com
driver inclusion category: cleanup bugzilla: https://gitee.com/openeuler/kernel/issues/I8LY0D
--------------------------------------------------------------------------
Fix the spin_lock and spin_unlock objects are inconsistent.
Fixes: 431c875e4b02 ("RDMA/hns: Fix simultaneous reset and resource deregistration") Signed-off-by: wenglianfa wenglianfa@huawei.com --- drivers/infiniband/hw/hns/hns_roce_mr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.c b/drivers/infiniband/hw/hns/hns_roce_mr.c index d1542653f326..68049467a721 100644 --- a/drivers/infiniband/hw/hns/hns_roce_mr.c +++ b/drivers/infiniband/hw/hns/hns_roce_mr.c @@ -1330,5 +1330,5 @@ void hns_roce_free_unfree_umem(struct hns_roce_dev *hr_dev) ib_umem_release(pos->umem); kvfree(pos); } - spin_unlock(&hr_dev->mtr_unfree_list_lock); + spin_unlock(&hr_dev->umem_unfree_list_lock); }