]> err.no Git - linux-2.6/commitdiff
[S390] dasd eer data format.
authorStefan Weinhuber <wein@de.ibm.com>
Thu, 29 Jun 2006 13:02:59 +0000 (15:02 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 29 Jun 2006 13:02:59 +0000 (15:02 +0200)
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>
drivers/s390/block/dasd_eer.c

index 9d574ede1b1d1ab10103657419961feb82bbe6e5..da65f1b032f5ad59748e356342afd1793eb0878e 100644 (file)
@@ -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