diff options
| -rw-r--r-- | fs/cifs/smb2pdu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 7446496850a3..66fa1b941cdf 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c | |||
| @@ -1185,6 +1185,10 @@ SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, const char *tree, | |||
| 1185 | return -EINVAL; | 1185 | return -EINVAL; |
| 1186 | } | 1186 | } |
| 1187 | 1187 | ||
| 1188 | /* SMB2 TREE_CONNECT request must be called with TreeId == 0 */ | ||
| 1189 | if (tcon) | ||
| 1190 | tcon->tid = 0; | ||
| 1191 | |||
| 1188 | rc = small_smb2_init(SMB2_TREE_CONNECT, tcon, (void **) &req); | 1192 | rc = small_smb2_init(SMB2_TREE_CONNECT, tcon, (void **) &req); |
| 1189 | if (rc) { | 1193 | if (rc) { |
| 1190 | kfree(unc_path); | 1194 | kfree(unc_path); |
