Преглед на файлове

[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.

Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Stefan Weinhuber преди 19 години
родител
ревизия
774fc4ef71
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      drivers/s390/block/dasd_eer.c

+ 1 - 1
drivers/s390/block/dasd_eer.c

@@ -276,7 +276,7 @@ struct dasd_eer_header {
 	__u64 tv_sec;
 	__u64 tv_sec;
 	__u64 tv_usec;
 	__u64 tv_usec;
 	char busid[DASD_EER_BUSID_SIZE];
 	char busid[DASD_EER_BUSID_SIZE];
-};
+} __attribute__ ((packed));
 
 
 /*
 /*
  * The following function can be used for those triggers that have
  * The following function can be used for those triggers that have