Skip to contentSkip to conversation

cifs: close the shared root handle on tree disconnect

PATCH Applied Ronnie Sahlberg 2 participants 2 messages Nov 7, 2019 – Nov 8, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs: close the shared root handle on tree disconnect

---
 fs/cifs/smb2pdu.c | 2 ++
 1 file changed, 2 insertions(+)
fs/cifs/smb2pdu.c +2 -0
index 05149862aea4..acb70f67efc9 100644
@@ -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)
Signature · 1 line
2.13.6
Applied
#1 lore raw

merged into cifs-2.6.git for-next

Quoted 22 lines · Ronnie Sahlberg
---
 fs/cifs/smb2pdu.c | 2 ++
 1 file changed, 2 insertions(+)
fs/cifs/smb2pdu.c +2 -1
index 05149862aea4..acb70f67efc9 100644
@@ -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)
--

2.13.6

Signature · 3 lines
Thanks,

Steve