Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 268875b9 authored by Steve French's avatar Steve French
Browse files

[CIFS] Do not send tree disconnect if session is already disconnected



Noticed this when tree connect timed out (due to Samba server crash) -
we try to send a tree disconnect for a tid that does not exist
since we don't have a valid tree id yet. This checks that the
session is valid before sending the tree disconnect to handle
this case.

Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 361ea1ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@ client generated ones by default (mount option "serverino" turned
on by default if server supports it).  Add forceuid and forcegid
on by default if server supports it).  Add forceuid and forcegid
mount options (so that when negotiating unix extensions specifying
mount options (so that when negotiating unix extensions specifying
which uid mounted does not immediately force the server's reported
which uid mounted does not immediately force the server's reported
uids to be overridden).
uids to be overridden).  Add support for scope moutn parm.


Version 1.58
Version 1.58
------------
------------
+1 −1
Original line number Original line Diff line number Diff line
@@ -729,7 +729,7 @@ CIFSSMBTDis(const int xid, struct cifsTconInfo *tcon)
	 * the tcon is no longer on the list, so no need to take lock before
	 * the tcon is no longer on the list, so no need to take lock before
	 * checking this.
	 * checking this.
	 */
	 */
	if (tcon->need_reconnect)
	if ((tcon->need_reconnect) || (tcon->ses->need_reconnect))
		return 0;
		return 0;


	rc = small_smb_init(SMB_COM_TREE_DISCONNECT, 0, tcon,
	rc = small_smb_init(SMB_COM_TREE_DISCONNECT, 0, tcon,