Commit 72e73c78 authored by Ronnie Sahlberg's avatar Ronnie Sahlberg Committed by Steve French
Browse files

cifs: close the shared root handle on tree disconnect

parent 598b6c57
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)