diff options
author | Yongzhi Liu <lyz_cs@pku.edu.cn> | 2022-03-11 20:06:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-08 15:23:39 +0300 |
commit | 8dd392e352d3269938fea32061a74655a613f929 (patch) | |
tree | e52b33e5ae4e0ac0e6207217e6f5de275be93223 /include/linux | |
parent | b089f7fc89f9a106c24bfc9d8f0bbf67df84fc3f (diff) | |
download | linux-8dd392e352d3269938fea32061a74655a613f929.tar.xz |
RDMA/mlx5: Fix memory leak in error flow for subscribe event routine
[ Upstream commit 087f9c3f2309ed183f7e4b85ae57121d8663224d ]
In case the second xa_insert() fails, the obj_event is not released. Fix
the error unwind flow to free that memory to avoid a memory leak.
Fixes: 759738537142 ("IB/mlx5: Enable subscription for device events over DEVX")
Link: https://lore.kernel.org/r/1647018361-18266-1-git-send-email-lyz_cs@pku.edu.cn
Signed-off-by: Yongzhi Liu <lyz_cs@pku.edu.cn>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions