mpt3sas:Make sure mpt3sas adapter has been reset in scsih_resume
Subsystems (2)
PATCH 1/1 mpt3sas:Make sure mpt3sas adapter has been reset in scsih_resume
This fixes the issue in the function scih_resume that we assume that the mpt3sas adapter has been reset properly with a call to mpt3sas_base_hard_reset_handler by checking if this function call returns a error code and exit adpater resume prematurely
Signed-off-by Bastien Philbert <[email protected]>
--- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/scsi/mpt3sas/mpt3sas_scsih.c +5 -1
@@ -8892,7 +8892,11 @@ scsih_resume(struct pci_dev *pdev)if (r)return r; -mpt3sas_base_hard_reset_handler (ioc,CAN_SLEEP ,SOFT_RESET ); + r =mpt3sas_base_hard_reset_handler (ioc,CAN_SLEEP ,SOFT_RESET ); +if (r) { +mpt3sas_base_free_resources (ioc); +return r; + }scsi_unblock_requests (shost);mpt3sas_base_start_watchdog (ioc);return 0 ;
Signature · 1 line
2.5.0