Zhang Xiaoxu e9d3401d95 cifs: Fix lost destroy smbd connection when MR allocate failed
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>
2023-02-20 11:48:48 -06:00
..
2022-12-19 08:04:50 -06:00
2023-02-20 11:48:48 -06:00
2023-01-18 14:49:51 -06:00
2023-01-18 14:49:51 -06:00
2022-12-19 08:03:12 -06:00
2019-01-24 09:37:33 -06:00
2021-04-25 16:28:23 -05:00
2022-10-20 10:13:32 +02:00