Skip to contentSkip to conversation

Drivers: hv: util: Properly pack the data for file copy functionality

PATCH In review K. Y. Srinivasan 2 participants 2 messages Sep 3, 2014

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

PATCH 1/1 Drivers: hv: util: Properly pack the data for file copy functionality

Properly pack the data for file copy functionality. Patch based on investigation done by Matej Muzila <[email protected]>

---
 include/uapi/linux/hyperv.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/uapi/linux/hyperv.h +1 -1
index 78e4a86..0a8e6ba 100644
@@ -137,7 +137,7 @@ struct hv_do_fcopy {
 	__u64	offset;
 	__u32	size;
 	__u8	data[DATA_FRAGMENT];
-};
+} __attribute__((packed));
 
 /*
  * An implementation of HyperV key value pair (KVP) functionality for Linux.
Signature · 1 line
1.7.4.1
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · K. Y. Srinivasan

Properly pack the data for file copy functionality. Patch based on investigation done by Matej Muzila <[email protected]>

---
 include/uapi/linux/hyperv.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/uapi/linux/hyperv.h +0 -0
index 78e4a86..0a8e6ba 100644

include/uapi/linux/hyperv.h struct hv_do_fcopy { · line 143

Quoted 8 lines
include/uapi/linux/hyperv.h +1 -1
@@ -137,7 +137,7 @@ struct hv_do_fcopy {
 	__u64	offset;
 	__u32	size;
 	__u8	data[DATA_FRAGMENT];
-};
+} __attribute__((packed));
 
 /*
  * An implementation of HyperV key value pair (KVP) functionality for Linux.