]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: return errors during session setup during reconnects
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 31 May 2022 12:31:05 +0000 (12:31 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 6 Jun 2022 23:23:38 +0000 (18:23 -0500)
commit503364ef07732aa77d5515f7757084250c9851ca
treead287f65c45d773de7b2e6e07cf39c684db6a1a3
parentdda13fb40c994b9c0e8ac05eecaaa6b45e1a7fd2
cifs: return errors during session setup during reconnects

During reconnects, we check the return value from
cifs_negotiate_protocol, and have handlers for both success
and failures. But if that passes, and cifs_setup_session
returns any errors other than -EACCES, we do not handle
that. This fix adds a handler for that, so that we don't
go ahead and try a tree_connect on a failed session.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c