cifs: update tcpStatus during negotiate and sess setup
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 18 Jan 2022 09:24:08 +0000 (09:24 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 19 Jan 2022 17:10:55 +0000 (11:10 -0600)
commit47de760655f329ce4b3d3e6276557220956d8c38
tree8d2a0587a2f45755ed15b8c5f7cc645a4f65137c
parentc1604da708d345a1ca1cf6a5537d503b14aa4787
cifs: update tcpStatus during negotiate and sess setup

Till the end of SMB session setup, update tcpStatus and
avoid updating session status field. There was a typo in
cifs_setup_session, which caused ses->status to be updated
instead. This was causing issues during reconnect.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c