From: Ronnie Sahlberg Date: Thu, 7 Nov 2019 07:00:38 +0000 (+1000) Subject: cifs: close the shared root handle on tree disconnect X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=72e73c78c446e3c009a29b017c7fa3d79463e2aa;p=linux.git cifs: close the shared root handle on tree disconnect Signed-off-by: Ronnie Sahlberg Signed-off-by: Steve French --- diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 05149862aea42..acb70f67efc94 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -1807,6 +1807,8 @@ SMB2_tdis(const unsigned int xid, struct cifs_tcon *tcon) if ((tcon->need_reconnect) || (tcon->ses->need_reconnect)) return 0; + close_shroot(&tcon->crfid); + rc = smb2_plain_req_init(SMB2_TREE_DISCONNECT, tcon, (void **) &req, &total_len); if (rc)