Loading
RDMA/hns: Fix memory leak in free_mr_init()
mainline inclusion from mainline-v6.8-rc1 commit 288f535951aa81ed674f5e5477ab11b9d9351b8c category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I90X3R CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=288f535951aa81ed674f5e5477ab11b9d9351b8c ---------------------------------------------------------------------- When a reserved QP fails to be created, the memory of the remaining created reserved QPs is leaked. Fixes: 70f92521 ("RDMA/hns: Use the reserved loopback QPs to free MR before destroying MPT") Signed-off-by:Chengchang Tang <tangchengchang@huawei.com> Signed-off-by:
Junxian Huang <huangjunxian6@hisilicon.com> Link: https://lore.kernel.org/r/20231207114231.2872104-6-huangjunxian6@hisilicon.com Signed-off-by:
Leon Romanovsky <leon@kernel.org> Signed-off-by:
Juan Zhou <zhoujuan51@h-partners.com>