aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r--fs/cifs/smb2pdu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index f2ff60e58ec8..84614a5edb87 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -580,8 +580,7 @@ int smb3_validate_negotiate(const unsigned int xid, struct cifs_tcon *tcon)
580 } 580 }
581 581
582 /* check validate negotiate info response matches what we got earlier */ 582 /* check validate negotiate info response matches what we got earlier */
583 if (pneg_rsp->Dialect != 583 if (pneg_rsp->Dialect != cpu_to_le16(tcon->ses->server->dialect))
584 cpu_to_le16(tcon->ses->server->vals->protocol_id))
585 goto vneg_out; 584 goto vneg_out;
586 585
587 if (pneg_rsp->SecurityMode != cpu_to_le16(tcon->ses->server->sec_mode)) 586 if (pneg_rsp->SecurityMode != cpu_to_le16(tcon->ses->server->sec_mode))