summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx
diff options
context:
space:
mode:
authorShyam Sundar <shyam.sundar@qlogic.com>2006-08-01 22:48:13 +0200
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-08-06 18:29:45 +0200
commitb797b6de9d4d8d085169a507c54b18e74dbe4f21 (patch)
tree2b9b5a236a780cf780e6655e6e495cb7bf659aa4 /drivers/scsi/qla2xxx
parent[SCSI] lpfc 8.1.7 : Change version number to 8.1.8 (diff)
downloadlinux-b797b6de9d4d8d085169a507c54b18e74dbe4f21.tar.xz
linux-b797b6de9d4d8d085169a507c54b18e74dbe4f21.zip
[SCSI] qla2xxx: Correct endianess problem while issuing a Marker IOCB on ISP24xx.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r--drivers/scsi/qla2xxx/qla_iocb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c
index 2b60a27eff0b..c5b3c610a32a 100644
--- a/drivers/scsi/qla2xxx/qla_iocb.c
+++ b/drivers/scsi/qla2xxx/qla_iocb.c
@@ -471,6 +471,7 @@ __qla2x00_marker(scsi_qla_host_t *ha, uint16_t loop_id, uint16_t lun,
mrk24->nport_handle = cpu_to_le16(loop_id);
mrk24->lun[1] = LSB(lun);
mrk24->lun[2] = MSB(lun);
+ host_to_fcp_swap(mrk24->lun, sizeof(mrk24->lun));
} else {
SET_TARGET_ID(ha, mrk->target, loop_id);
mrk->lun = cpu_to_le16(lun);