aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2013-06-12 20:59:03 -0400
committerSteve French <smfrench@gmail.com>2013-06-24 02:56:45 -0400
commit9cd2e62c4952a00543685c6ee21cd2bf69b621e9 (patch)
treef2381bfc22c7e9cbfe7782e032456fa988eebeda /fs/cifs/smb2pdu.c
parent7715dad8e10c4115ec85471300b452c9194146b5 (diff)
Fix endian error in SMB2 protocol negotiation
Fix minor endian error in Jeff's auth rewrite Reviewed-by: Jeff Laytonn <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r--fs/cifs/smb2pdu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index fd2ea4271282..a20a8a7e1470 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -352,9 +352,9 @@ SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses)
352 352
353 /* only one of SMB2 signing flags may be set in SMB2 request */ 353 /* only one of SMB2 signing flags may be set in SMB2 request */
354 if (ses->sign) 354 if (ses->sign)
355 req->SecurityMode = SMB2_NEGOTIATE_SIGNING_REQUIRED; 355 req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_REQUIRED);
356 else if (global_secflags & CIFSSEC_MAY_SIGN) 356 else if (global_secflags & CIFSSEC_MAY_SIGN)
357 req->SecurityMode = SMB2_NEGOTIATE_SIGNING_ENABLED; 357 req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_ENABLED);
358 else 358 else
359 req->SecurityMode = 0; 359 req->SecurityMode = 0;
360 360