linux/drivers/infiniband
Zhengchao Shao a115aa00b1 RDMA/hns: fix memory leak in hns_roce_alloc_mr()
When hns_roce_mr_enable() failed in hns_roce_alloc_mr(), mr_key is not
released. Compiled test only.

Fixes: 9b2cf76c9f ("RDMA/hns: Optimize PBL buffer allocation process")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20221119070834.48502-1-shaozhengchao@huawei.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2022-11-22 16:20:08 +02:00
..
core RDMA/nldev: Return "-EAGAIN" if the cm_id isn't from expected port 2022-11-15 09:56:45 +02:00
hw RDMA/hns: fix memory leak in hns_roce_alloc_mr() 2022-11-22 16:20:08 +02:00
sw RDMA/rxe: Fix mr->map double free 2022-11-18 20:15:51 -04:00
ulp IB/isert: use the ISCSI_LOGIN_CURRENT_STAGE macro 2022-11-21 14:49:21 -04:00
Kconfig RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter 2022-11-11 11:40:09 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00