aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2019-11-07 17:00:38 +1000
committerSteve French <stfrench@microsoft.com>2019-11-25 01:14:53 -0600
commit72e73c78c446e3c009a29b017c7fa3d79463e2aa (patch)
treeedfc4ff11051e473484128355d35ef60d1c5a6f6 /fs/cifs/smb2pdu.c
parentCIFS: Return directly after a failed build_path_from_dentry() in cifs_do_create() (diff)
downloadlinux-dev-72e73c78c446e3c009a29b017c7fa3d79463e2aa.tar.xz
linux-dev-72e73c78c446e3c009a29b017c7fa3d79463e2aa.zip
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 '')
-rw-r--r--fs/cifs/smb2pdu.c2
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)