]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: handle cases where multiple sessions share connection
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 6 Feb 2024 15:00:47 +0000 (15:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:56 +0000 (13:34 +0100)
commitdd40cbafb1d2e8d5b77d5dbb33577a095490aa7d
tree449b48e34791f23fe3658f0f0c44fd30a85758a3
parentcd743cfead99fbfa176c9b317706da22fb846542
cifs: handle cases where multiple sessions share connection

[ Upstream commit a39c757bf0596b17482a507f31c3ef0af0d1d2b4 ]

Based on our implementation of multichannel, it is entirely
possible that a server struct may not be found in any channel
of an SMB session.

In such cases, we should be prepared to move on and search for
the server struct in the next session.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/connect.c
fs/smb/client/sess.c