diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2023-01-04 10:04:24 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-11 16:31:59 +0100 |
commit | d6d3599832b7c97130deffcd088af3e697f07cab (patch) | |
tree | 0c78c3593803ee3d35d4cb3d8f18c95eb30cb76b /arch | |
parent | 1ab4de11232e83b875b071aa44d1155634ca8a1e (diff) | |
download | linux-stable-d6d3599832b7c97130deffcd088af3e697f07cab.tar.gz linux-stable-d6d3599832b7c97130deffcd088af3e697f07cab.tar.bz2 linux-stable-d6d3599832b7c97130deffcd088af3e697f07cab.zip |
9p/rdma: unmap receive dma buffer in rdma_request()/post_recv()
[ Upstream commit 74a25e6e916cb57dab4267a96fbe8864ed21abdb ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions