Message ID | 20190226134121.23650-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [next] scsi: lpfc: ensure error is set to -ENODEV on failing exit paths | expand |
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 3b5873f6751e..e88c606317e1 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -10064,6 +10064,7 @@ lpfc_sli4_pci_mem_setup(struct lpfc_hba *phba) error = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); if (error) return error; + error = -ENODEV; /* * The BARs and register set definitions and offset locations are