fix "disabling echoes and oplocks" on SMB2 mounts
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / cifs / smb2pdu.c
index e7f9dbc33ce2065e157bf644cab9ee33cf3298bc..41d9d0725f0f3a47d432aa754803a4596c0381ac 100644 (file)
@@ -612,7 +612,8 @@ ssetup_ntlmssp_authenticate:
 
        /* BB add code to build os and lm fields */
 
-       rc = SendReceive2(xid, ses, iov, 2, &resp_buftype, CIFS_LOG_ERROR);
+       rc = SendReceive2(xid, ses, iov, 2, &resp_buftype,
+                         CIFS_LOG_ERROR | CIFS_NEG_OP);
 
        kfree(security_blob);
        rsp = (struct smb2_sess_setup_rsp *)iov[0].iov_base;