Commit 0d4be124 authored by's avatar Committed by
Browse files

[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: default avatarAndrew Vasquez <>
Signed-off-by: default avatarJames Bottomley <>
parent 247ec457
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment