[SCSI] qla2xxx: Correct endianess issue while interrogating MS status.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Thu, 14 Dec 2006 03:20:26 +0000 (19:20 -0800)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 3 Jan 2007 22:57:46 +0000 (16:57 -0600)
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/qla2xxx/qla_gs.c

index 97fbc62ec66958ac4319aea507e2e4750c1ddb10..f8bd33e6a9e4054e5a1e9c3c8fe9a0285ef9d939 100644 (file)
@@ -127,8 +127,8 @@ qla2x00_chk_ms_status(scsi_qla_host_t *ha, ms_iocb_entry_t *ms_pkt,
                    ha->host_no, routine, ms_pkt->entry_status));
        } else {
                if (IS_QLA24XX(ha) || IS_QLA54XX(ha))
-                       comp_status =
-                           ((struct ct_entry_24xx *)ms_pkt)->comp_status;
+                       comp_status = le16_to_cpu(
+                           ((struct ct_entry_24xx *)ms_pkt)->comp_status);
                else
                        comp_status = le16_to_cpu(ms_pkt->status);
                switch (comp_status) {