[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>

authored by andrew.vasquez@qlogic.com and committed by 0d4be124 247ec457

+1
+1
drivers/scsi/qla2xxx/qla_iocb.c
··· 814 814 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; 815 815 816 816 int_to_scsilun(sp->cmd->device->lun, &cmd_pkt->lun); 817 + host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, sizeof(cmd_pkt->lun)); 817 818 818 819 /* Load SCSI command packet. */ 819 820 memcpy(cmd_pkt->fcp_cdb, cmd->cmnd, cmd->cmd_len);