diff options
author | Zhang Xiaoxu <zhangxiaoxu5@huawei.com> | 2022-11-18 16:42:07 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-11 16:31:42 +0100 |
commit | d303e25887127364a6765eaf7ac68aa2bac518a9 (patch) | |
tree | 25bbfee2659b49bc58d1ff4deb39625ad94bc8a6 /include/scsi | |
parent | f2fc2f8512fc2f426445fbc1ac08e71f80e0b027 (diff) | |
download | linux-stable-d303e25887127364a6765eaf7ac68aa2bac518a9.tar.gz linux-stable-d303e25887127364a6765eaf7ac68aa2bac518a9.tar.bz2 linux-stable-d303e25887127364a6765eaf7ac68aa2bac518a9.zip |
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 'include/scsi')
0 files changed, 0 insertions, 0 deletions