From: Steve French Date: Thu, 13 Jun 2013 00:59:03 +0000 (-0500) Subject: [CIFS] Fix endian error in SMB2 protocol negotiation X-Git-Tag: next-20130617~99^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4ef88e9434f375e5cec4876b36f280eb5eccc7f4;p=karo-tx-linux.git [CIFS] Fix endian error in SMB2 protocol negotiation Fix minor endian error in Jeff's auth rewrite Reviewed-by: Jeff Laytonn Signed-off-by: Steve French --- 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) /* only one of SMB2 signing flags may be set in SMB2 request */ if (ses->sign) - req->SecurityMode = SMB2_NEGOTIATE_SIGNING_REQUIRED; + req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_REQUIRED); else if (global_secflags & CIFSSEC_MAY_SIGN) - req->SecurityMode = SMB2_NEGOTIATE_SIGNING_ENABLED; + req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_ENABLED); else req->SecurityMode = 0;