Skip to contentSkip to conversation

CIFS: Fix endian conversion of IndexNumber

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

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

PATCH 1/1 CIFS: Fix endian conversion of IndexNumber

by making it __le64 rather than __u64 in FILE_AL_INFO structure.

---
 fs/cifs/cifspdu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/cifs/cifspdu.h +1 -1
index 3fb03e2..b9d59a9 100644
@@ -2210,7 +2210,7 @@ typedef struct { /* data block encoding of response to level 263 QPathInfo */
 	__u8 DeletePending;
 	__u8 Directory;
 	__u16 Pad2;
-	__u64 IndexNumber;
+	__le64 IndexNumber;
 	__le32 EASize;
 	__le32 AccessFlags;
 	__u64 IndexNumber1;
Signature · 1 line
1.7.5.4