Commit c3390df4 authored by Don Brace's avatar Don Brace Committed by Martin K. Petersen

hpsa: check for a null phys_disk pointer in ioaccel2 path

An oops can occur when submitting ioaccel2 commands when the phys_disk
pointer is NULL in hpsa_scsi_ioaccel_raid_map.  Happens when there are
configuration changes during I/O operations.

If the phys_disk pointer is NULL, send the command down the RAID path.
Reviewed-by: default avatarMahesh Rajashekhara <>
Reviewed-by: default avatarJustin Lindley <>
Reviewed-by: default avatarScott Teel <>
Reviewed-by: default avatarKevin Barnett <>
Reviewed-by: default avatarMatthew R. Ochs <>
Signed-off-by: default avatarDon Brace <>
Signed-off-by: default avatarMartin K. Petersen <>
parent 39f3deb2
......@@ -4981,6 +4981,8 @@ static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h,
c->phys_disk = dev->phys_disk[map_index];
if (!c->phys_disk)
disk_handle = dd[map_index].ioaccel_handle;
disk_block = le64_to_cpu(map->disk_starting_blk) +
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