diff options
author | Paulo Alcantara | 2022-12-13 09:15:23 -0300 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-01-07 11:11:50 +0100 |
commit | 2d8cbc14707a79121fa019f8b570e181075f0d56 (patch) | |
tree | f583dd9bf84e23c0efbeb79f1e414656136a2b3c /fs | |
parent | 66d65a6fba330ac8152b4f4d5f897c63676ba675 (diff) |
cifs: set correct tcon status after initial tree connect
commit b248586a49a7729f73c504b1e7b958caea45e927 upstream.
cifs_tcon::status wasn't correctly updated to TID_GOOD after initial
tree connect thus staying at TID_NEW as long as it was connected.
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/connect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index ede655d62d74..191fc133f93a 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2602,6 +2602,7 @@ cifs_get_tcon(struct cifs_ses *ses, struct smb3_fs_context *ctx) tcon->nodelete = ctx->nodelete; tcon->local_lease = ctx->local_lease; INIT_LIST_HEAD(&tcon->pending_opens); + tcon->status = TID_GOOD; /* schedule query interfaces poll */ INIT_DELAYED_WORK(&tcon->query_interfaces, |