Skip to contentSkip to conversation

s390: dasd eer data format.

PATCH New Martin Schwidefsky 1 participant 1 message Jun 14, 2006

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

PATCH 22/24 s390: dasd eer data format.

From: Stefan Weinhuber <[email protected]>

[S390] dasd eer data format.

The struct dasd_eer_header needs the packed attribute, or there will be 6 additional bytes of random data between the fixed header and the variable length part of the eer data.

---

 drivers/s390/block/dasd_eer.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/s390/block/dasd_eer.c +1 -1
diff -urpN linux-2.6/drivers/s390/block/dasd_eer.c linux-2.6-patched/drivers/s390/block/dasd_eer.c
@@ -276,7 +276,7 @@ struct dasd_eer_header {
 	__u64 tv_sec;
 	__u64 tv_usec;
 	char busid[DASD_EER_BUSID_SIZE];
-};
+} __attribute__ ((packed));
 
 /*
  * The following function can be used for those triggers that have