diff options
author | Xiang Chen <[email protected]> | 2019-11-12 17:30:57 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2019-11-12 22:21:34 -0500 |
commit | 547fde8b5a1923050f388caae4f76613b5a620e0 (patch) | |
tree | cf3d941fe1f75c121aa3ed31026f2892f999812e | |
parent | 8c39673d5474b95374df2104dc1f65205c5278b8 (diff) |
scsi: hisi_sas: Return directly if init hardware failed
Need to return directly if init hardware failed.
Fixes: 73a4925d154c ("scsi: hisi_sas: Update all the registers after suspend and resume")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Xiang Chen <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r-- | drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 2ae7070db41a..b7836406debe 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -3432,6 +3432,7 @@ static int hisi_sas_v3_resume(struct pci_dev *pdev) if (rc) { scsi_remove_host(shost); pci_disable_device(pdev); + return rc; } hisi_hba->hw->phys_init(hisi_hba); sas_resume_ha(sha); |