cifs: set correct ipc status after initial tree connect
authorPaulo Alcantara <pc@cjr.nz>
Fri, 16 Dec 2022 17:00:19 +0000 (14:00 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:11:50 +0000 (11:11 +0100)
commita37d718a0e0b1d3417c3d0098399266cb6d02ef8
tree2bbb4a5adba9ba33c1b9901a924d0662dcde32a3
parent2d8cbc14707a79121fa019f8b570e181075f0d56
cifs: set correct ipc status after initial tree connect

commit 86fe0fa8747fb1bc4cc44fc1966e0959fe752f38 upstream.

cifs_tcon::status wasn't correctly updated to TID_GOOD after
establishing initial IPC connection thus staying at TID_NEW as long as
it wasn't reconnected.

Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/connect.c