Skip to contentSkip to conversation

CIFS: Fix endianness conversion

PATCH New Pavel Shilovsky 1 participant 1 message Sep 4, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CIFS: Fix endianness conversion

---
 fs/cifs/smb2pdu.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/cifs/smb2pdu.h +2 -2
index c5fbfac..15dc8ee 100644
@@ -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 */
@@ -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;
Signature · 1 line
1.7.1