diff options
author | adam radford <aradford@gmail.com> | 2011-02-24 23:56:49 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-02-28 12:56:22 -0500 |
commit | eaa3c240de25c6e52ee1329e4acadfd99d7d104b (patch) | |
tree | 19ece158f8b716bb3239eb7560813c00780ebd5b /drivers/scsi/megaraid | |
parent | f512440589632c73e7c2f42d9d723994cd45958b (diff) |
[SCSI] megaraid_sas: Fix megasas_build_dcdb_fusion to use correct LUN field
Signed-off-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_sas_fusion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 4ac1f6837532..905c1e9317b6 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c | |||
@@ -1461,7 +1461,7 @@ megasas_build_dcdb_fusion(struct megasas_instance *instance, | |||
1461 | MEGASAS_REQ_DESCRIPT_FLAGS_TYPE_SHIFT); | 1461 | MEGASAS_REQ_DESCRIPT_FLAGS_TYPE_SHIFT); |
1462 | } | 1462 | } |
1463 | io_request->RaidContext.VirtualDiskTgtId = device_id; | 1463 | io_request->RaidContext.VirtualDiskTgtId = device_id; |
1464 | io_request->LUN[0] = scmd->device->lun; | 1464 | io_request->LUN[1] = scmd->device->lun; |
1465 | io_request->DataLength = scsi_bufflen(scmd); | 1465 | io_request->DataLength = scsi_bufflen(scmd); |
1466 | } | 1466 | } |
1467 | 1467 | ||
@@ -1485,7 +1485,7 @@ megasas_build_io_fusion(struct megasas_instance *instance, | |||
1485 | device_id = MEGASAS_DEV_INDEX(instance, scp); | 1485 | device_id = MEGASAS_DEV_INDEX(instance, scp); |
1486 | 1486 | ||
1487 | /* Zero out some fields so they don't get reused */ | 1487 | /* Zero out some fields so they don't get reused */ |
1488 | io_request->LUN[0] = 0; | 1488 | io_request->LUN[1] = 0; |
1489 | io_request->CDB.EEDP32.PrimaryReferenceTag = 0; | 1489 | io_request->CDB.EEDP32.PrimaryReferenceTag = 0; |
1490 | io_request->CDB.EEDP32.PrimaryApplicationTagMask = 0; | 1490 | io_request->CDB.EEDP32.PrimaryApplicationTagMask = 0; |
1491 | io_request->EEDPFlags = 0; | 1491 | io_request->EEDPFlags = 0; |