summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_nx.c
diff options
context:
space:
mode:
authorMike Hernandez <michael.hernandez@qlogic.com>2010-11-23 16:52:46 -0800
committerJames Bottomley <James.Bottomley@suse.de>2010-12-09 13:24:11 -0600
commit85727e1f78bd8392a0657ad6a4ff85fef1cc4a6d (patch)
tree45b28cc2d8cace43d9c64919604a2ab38de7ea9c /drivers/scsi/qla2xxx/qla_nx.c
parente55f87531c2c1eb071a296df7eb67f83d5f0b5df (diff)
downloadblackbird-op-linux-85727e1f78bd8392a0657ad6a4ff85fef1cc4a6d.tar.gz
blackbird-op-linux-85727e1f78bd8392a0657ad6a4ff85fef1cc4a6d.zip
[SCSI] qla2xxx: Populate Command Type 6 LUN field properly.
Use the host_to_fcp_swap call to correctly populate the LUN field in the Command Type 6 path. This field is used during LUN reset cleanup and must match the field used in the FCP command. Cc: stable@kernel.org Signed-off-by: Mike Hernandez <michael.hernandez@qlogic.com> Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_nx.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_nx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c
index 8d9edfb39803..ae2acacc0003 100644
--- a/drivers/scsi/qla2xxx/qla_nx.c
+++ b/drivers/scsi/qla2xxx/qla_nx.c
@@ -2749,6 +2749,7 @@ sufficient_dsds:
goto queuing_error_fcp_cmnd;
int_to_scsilun(sp->cmd->device->lun, &cmd_pkt->lun);
+ host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, sizeof(cmd_pkt->lun));
/* build FCP_CMND IU */
memset(ctx->fcp_cmnd, 0, sizeof(struct fcp_cmnd));
OpenPOWER on IntegriCloud