Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cifs: Fix lost destroy smbd connection when MR allocate failed
[ Upstream commit e9d3401 ] 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: c739858 ("CIFS: SMBD: Implement RDMA memory registration") Signed-off-by: Zhang Xiaoxu <[email protected]> Acked-by: Paulo Alcantara (SUSE) <[email protected]> Reviewed-by: David Howells <[email protected]> Reviewed-by: Tom Talpey <[email protected]> Signed-off-by: Steve French <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information