Commit eaa3c240 authored by adam radford's avatar adam radford Committed by James Bottomley

[SCSI] megaraid_sas: Fix megasas_build_dcdb_fusion to use correct LUN field

Signed-off-by: default avatarAdam Radford <aradford@gmail.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent f5124405
...@@ -1461,7 +1461,7 @@ megasas_build_dcdb_fusion(struct megasas_instance *instance, ...@@ -1461,7 +1461,7 @@ megasas_build_dcdb_fusion(struct megasas_instance *instance,
MEGASAS_REQ_DESCRIPT_FLAGS_TYPE_SHIFT); MEGASAS_REQ_DESCRIPT_FLAGS_TYPE_SHIFT);
} }
io_request->RaidContext.VirtualDiskTgtId = device_id; io_request->RaidContext.VirtualDiskTgtId = device_id;
io_request->LUN[0] = scmd->device->lun; io_request->LUN[1] = scmd->device->lun;
io_request->DataLength = scsi_bufflen(scmd); io_request->DataLength = scsi_bufflen(scmd);
} }
...@@ -1485,7 +1485,7 @@ megasas_build_io_fusion(struct megasas_instance *instance, ...@@ -1485,7 +1485,7 @@ megasas_build_io_fusion(struct megasas_instance *instance,
device_id = MEGASAS_DEV_INDEX(instance, scp); device_id = MEGASAS_DEV_INDEX(instance, scp);
/* Zero out some fields so they don't get reused */ /* Zero out some fields so they don't get reused */
io_request->LUN[0] = 0; io_request->LUN[1] = 0;
io_request->CDB.EEDP32.PrimaryReferenceTag = 0; io_request->CDB.EEDP32.PrimaryReferenceTag = 0;
io_request->CDB.EEDP32.PrimaryApplicationTagMask = 0; io_request->CDB.EEDP32.PrimaryApplicationTagMask = 0;
io_request->EEDPFlags = 0; io_request->EEDPFlags = 0;
......
Markdown is supported
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