]> git.baikalelectronics.ru Git - kernel.git/commit
consistently use smb_buf_length as be32 for cifs (try 3)
authorSteve French <sfrench@us.ibm.com>
Fri, 29 Apr 2011 05:40:20 +0000 (05:40 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 19 May 2011 14:10:51 +0000 (14:10 +0000)
commitff6a4c0061885c1d5739da8881e6f23b4203d1ea
tree41f6a5e2ccf4bf03eb722030563490bbe46f0644
parent99f92943a43e894eae45891f1e1b314df76196ae
consistently use smb_buf_length as be32 for cifs (try 3)

       There is one big endian field in the cifs protocol, the RFC1001
       length, which cifs code (unlike in the smb2 code) had been handling as
       u32 until the last possible moment, when it was converted to be32 (its
       native form) before sending on the wire.   To remove the last sparse
       endian warning, and to make this consistent with the smb2
       implementation  (which always treats the fields in their
       native size and endianness), convert all uses of smb_buf_length to
       be32.

       This version incorporates Christoph's comment about
       using be32_add_cpu, and fixes a typo in the second
       version of the patch.

Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifspdu.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/misc.c
fs/cifs/sess.c
fs/cifs/transport.c