Skip to content
Commit 61f0c3c7 authored by weiping zhang's avatar weiping zhang Committed by Martin K. Petersen
Browse files

scsi: megaraid_sas: fix error handle in megasas_probe_one



megasas_mgmt_info.max_index has increased by 1 before megasas_io_attach,
if megasas_io_attach return error, then goto fail_io_attach,
megasas_mgmt_info.instance has a wrong index here. So first reduce
max_index and then set that instance to NULL.

Signed-off-by: default avatarweiping zhang <zhangweiping@didichuxing.com>
Acked-by: default avatarSumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 424f727b
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