diff options
author | andrew.vasquez@qlogic.com <andrew.vasquez@qlogic.com> | 2006-02-07 08:45:35 -0800 |
---|---|---|
committer | <jejb@mulgrave.il.steeleye.com> | 2006-02-07 10:54:07 -0600 |
commit | 0d4be1240b2668b6a3ffadb15eb660baf52f8377 (patch) | |
tree | 71ace6b819e5efe8951c99baaeadf0bfc56c6123 /drivers/scsi/qla2xxx/qla_iocb.c | |
parent | 247ec457ce108000987be517c83868f6361d9f76 (diff) |
[PATCH] qla2xxx: Correct lun assignment during IOCB submission.
4gb products require an IOCB's FCP-LUN to be formatted in
wire-format prior to submission.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_iocb.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_iocb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 7ec0b8d6f07b..6544b6d0891d 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -814,6 +814,7 @@ qla24xx_start_scsi(srb_t *sp) cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; int_to_scsilun(sp->cmd->device->lun, &cmd_pkt->lun); + host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, sizeof(cmd_pkt->lun)); /* Load SCSI command packet. */ memcpy(cmd_pkt->fcp_cdb, cmd->cmnd, cmd->cmd_len); |