summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2023-01-04 05:04:24 +0300
committerEric Van Hensbergen <ericvh@kernel.org>2023-02-24 16:42:28 +0300
commit74a25e6e916cb57dab4267a96fbe8864ed21abdb (patch)
tree69376f46a4041ddb71a97764f34d3449d01661c9 /lib
parentc15fe55d14b3b4ded5af2a3260877460a6ffb8ad (diff)
downloadlinux-74a25e6e916cb57dab4267a96fbe8864ed21abdb.tar.xz
9p/rdma: unmap receive dma buffer in rdma_request()/post_recv()
When down_interruptible() or ib_post_send() failed in rdma_request(), receive dma buffer is not unmapped. Add unmap action to error path. Also if ib_post_recv() failed in post_recv(), dma buffer is not unmapped. Add unmap action to error path. Link: https://lkml.kernel.org/r/20230104020424.611926-1-shaozhengchao@huawei.com Fixes: fc79d4b104f0 ("9p: rdma: RDMA Transport Support for 9P") Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Dominique Martinet <asmadeus@codewreck.org> Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions