mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
[SCSI] megaraid_sas: Add array boundary check for SystemPD
Signed-off-by: Adam Radford <aradford@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
f9eff81584
commit
e187df6399
1 changed files with 2 additions and 1 deletions
|
|
@ -1508,7 +1508,8 @@ megasas_build_dcdb_fusion(struct megasas_instance *instance,
|
|||
local_map_ptr = fusion->ld_map[(instance->map_id & 1)];
|
||||
|
||||
/* Check if this is a system PD I/O */
|
||||
if (instance->pd_list[pd_index].driveState == MR_PD_STATE_SYSTEM) {
|
||||
if (scmd->device->channel < MEGASAS_MAX_PD_CHANNELS &&
|
||||
instance->pd_list[pd_index].driveState == MR_PD_STATE_SYSTEM) {
|
||||
io_request->Function = 0;
|
||||
io_request->DevHandle =
|
||||
local_map_ptr->raidMap.devHndlInfo[device_id].curDevHdl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue