Commit 8b0e700a authored by Chengchang Tang's avatar Chengchang Tang Committed by Juan Zhou
Browse files

RDMA/hns: Fix memory leak in free_mr_exit() and free_mr_init()

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6GT7F



--------------------------------------------------------------------------

Reserved QPs and Reserved PD memory was leaked in free_mr_exit().
When a reserved QP fails to be created, the memory of the remaining
created reserved QPs is leaked.

Fixes: e89e2d3b ("RDMA/hns: Fix gid idx issue caused by free mr")
Signed-off-by: default avatarChengchang Tang <tangchengchang@huawei.com>
parent 6e81b2e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment