android_kernel_motorola_sm6375/drivers/infiniband
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zhipeng Lu cecfb90cf7 IB/hfi1: Fix a memleak in init_credit_return
[ Upstream commit 809aa64ebff51eb170ee31a95f83b2d21efa32e2 ]

When dma_alloc_coherent fails to allocate dd->cr_base[i].va,
init_credit_return should deallocate dd->cr_base and
dd->cr_base[i] that allocated before. Or those resources
would be never freed and a memleak is triggered.

Fixes: 7724105686 ("IB/hfi1: add driver files")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Link: https://lore.kernel.org/r/20240112085523.3731720-1-alexious@zju.edu.cn
Acked-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:13:36 +01:00
..
core RDMA/uverbs: Fix typo of sizeof argument 2023-10-10 21:46:45 +02:00
hw IB/hfi1: Fix a memleak in init_credit_return 2024-03-01 13:13:36 +01:00
sw RDMA/siw: Fix connection failure handling 2023-10-10 21:46:45 +02:00
ulp IB/ipoib: Fix mcast list locking 2024-02-23 08:25:01 +01:00
Kconfig
Makefile