cifs: close the shared root handle on tree disconnect
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 7 Nov 2019 07:00:38 +0000 (17:00 +1000)
committerSteve French <stfrench@microsoft.com>
Mon, 25 Nov 2019 07:14:53 +0000 (01:14 -0600)
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c

index 05149862aea42e6a33736fe77856d8a822af4480..acb70f67efc94dcc46de31bf9d0d9ae3fbef7039 100644 (file)
@@ -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)