]> err.no Git - linux-2.6/commitdiff
[SCSI] aacraid: fix struct element cpu order
authorMark Haverkamp <markh@osdl.org>
Mon, 24 Oct 2005 17:52:02 +0000 (10:52 -0700)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 28 Oct 2005 16:23:16 +0000 (11:23 -0500)
Received from Mark Salyzyn.

The compat field needed to be in cpu order.

Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aacraid/aacraid.h
drivers/scsi/aacraid/commctrl.c

index e40528185d48fab70a6d5011ed1a4f6773073cef..bdfd4a7f950ed0c0f103372640a60017fe0d956b 100644 (file)
@@ -1553,7 +1553,7 @@ struct fib_ioctl
 
 struct revision
 {
-       __le32 compat;
+       u32 compat;
        __le32 version;
        __le32 build;
 };
index 71f1cad9b5f077bf8e5ad1bb3024135e5875c3c7..0459ba7b5bdbd09eb0fd19a1018588bd15ecaf47 100644 (file)
@@ -408,7 +408,7 @@ static int check_revision(struct aac_dev *dev, void __user *arg)
        char *driver_version = aac_driver_version;
        u32 version;
 
-       response.compat = cpu_to_le32(1);
+       response.compat = 1;
        version = (simple_strtol(driver_version, 
                                &driver_version, 10) << 24) | 0x00000400;
        version += simple_strtol(driver_version + 1, &driver_version, 10) << 16;