android_kernel_motorola_sm6375/drivers/infiniband
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yongzhi Liu 0174a89663 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: 7597385371 ("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>
2022-04-15 14:18:16 +02:00
..
core IB/cma: Allow XRC INI QPs to set their local ACK timeout 2022-04-15 14:18:12 +02:00
hw RDMA/mlx5: Fix memory leak in error flow for subscribe event routine 2022-04-15 14:18:16 +02:00
sw RDMA/siw: Fix broken RDMA Read Fence/Resume logic. 2022-02-08 18:24:29 +01:00
ulp RDMA/ib_srp: Fix a deadlock 2022-03-02 11:41:10 +01:00
Kconfig
Makefile