diff options
author | andrew.vasquez@qlogic.com <andrew.vasquez@qlogic.com> | 2006-02-07 17:45:35 +0100 |
---|---|---|
committer | <jejb@mulgrave.il.steeleye.com> | 2006-02-07 17:54:07 +0100 |
commit | 0d4be1240b2668b6a3ffadb15eb660baf52f8377 (patch) | |
tree | 71ace6b819e5efe8951c99baaeadf0bfc56c6123 | |
parent | [PATCH] qla2xxx: Pass input-buffer length to Get-ID-List mailbox command. (diff) | |
download | linux-0d4be1240b2668b6a3ffadb15eb660baf52f8377.tar.xz linux-0d4be1240b2668b6a3ffadb15eb660baf52f8377.zip |
[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>
-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); |