diff options
author | Zhang Xiaoxu <zhangxiaoxu5@huawei.com> | 2022-11-18 11:42:07 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-11 18:39:39 +0300 |
commit | caac205e0d5b44c4c23a10c6c0976d50ebe16ac2 (patch) | |
tree | 1abc3af5a5d688fea4214e7fc636b90541d91da4 /Kconfig | |
parent | 9e8ccaf4ff2c4808004276267365da72693b9ddc (diff) | |
download | linux-caac205e0d5b44c4c23a10c6c0976d50ebe16ac2.tar.xz |
cifs: Fix lost destroy smbd connection when MR allocate failed
[ Upstream commit e9d3401d95d62a9531082cd2453ed42f2740e3fd ]
If the MR allocate failed, the smb direct connection info is NULL,
then smbd_destroy() will directly return, then the connection info
will be leaked.
Let's set the smb direct connection info to the server before call
smbd_destroy().
Fixes: c7398583340a ("CIFS: SMBD: Implement RDMA memory registration")
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Acked-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: David Howells <dhowells@redhat.com>
Reviewed-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions