diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2019-11-07 17:00:38 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-11-25 01:14:53 -0600 |
commit | 72e73c78c446e3c009a29b017c7fa3d79463e2aa (patch) | |
tree | edfc4ff11051e473484128355d35ef60d1c5a6f6 /fs/cifs/smb2pdu.c | |
parent | 598b6c57f2ff29df948c846f4bf3046c33d6b37f (diff) |
cifs: close the shared root handle on tree disconnect
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 05149862aea4..acb70f67efc9 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) |