Skip to content
Commit cb6ec51d authored by Li Zhijian's avatar Li Zhijian Committed by Greg Kroah-Hartman
Browse files

RDMA/rtrs: Fix the last iu->buf leak in err path

[ Upstream commit 3bf3a7c6 ]

The last iu->buf will leak if ib_dma_mapping_error() fails.

Fixes: c0894b3e ("RDMA/rtrs: core: lib functions shared between client and server modules")
Link: https://lore.kernel.org/r/1682384563-2-3-git-send-email-lizhijian@fujitsu.com


Signed-off-by: default avatarLi Zhijian <lizhijian@fujitsu.com>
Acked-by: default avatarGuoqing Jiang <guoqing.jiang@linux.dev>
Acked-by: default avatarJack Wang <jinpu.wang@ionos.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 26293251
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment