Skip to content

Commit

Permalink
CIFS: Fix endianness conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Shilovsky <pshilovsky@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
  • Loading branch information
Pavel Shilovsky authored and Steve French committed Sep 6, 2012
1 parent e2f2886 commit b2ede58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/cifs/smb2pdu.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
*
*/

#define SMB2_HEADER_STRUCTURE_SIZE __constant_le16_to_cpu(64)
#define SMB2_HEADER_STRUCTURE_SIZE __constant_cpu_to_le16(64)

struct smb2_hdr {
__be32 smb2_buf_length; /* big endian on wire */
Expand Down Expand Up @@ -140,7 +140,7 @@ struct smb2_pdu {
*
*/

#define SMB2_ERROR_STRUCTURE_SIZE2 __constant_le16_to_cpu(9)
#define SMB2_ERROR_STRUCTURE_SIZE2 __constant_cpu_to_le16(9)

struct smb2_err_rsp {
struct smb2_hdr hdr;
Expand Down

0 comments on commit b2ede58

Please sign in to comment.