diff options
| -rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 06f9a5b79e66..a5769a9960ac 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
| @@ -8242,7 +8242,7 @@ lpfc_sli_enable_msix(struct lpfc_hba *phba) | |||
| 8242 | if (rc) { | 8242 | if (rc) { |
| 8243 | lpfc_printf_log(phba, KERN_INFO, LOG_INIT, | 8243 | lpfc_printf_log(phba, KERN_INFO, LOG_INIT, |
| 8244 | "0420 PCI enable MSI-X failed (%d)\n", rc); | 8244 | "0420 PCI enable MSI-X failed (%d)\n", rc); |
| 8245 | goto msi_fail_out; | 8245 | goto vec_fail_out; |
| 8246 | } | 8246 | } |
| 8247 | for (i = 0; i < LPFC_MSIX_VECTORS; i++) | 8247 | for (i = 0; i < LPFC_MSIX_VECTORS; i++) |
| 8248 | lpfc_printf_log(phba, KERN_INFO, LOG_INIT, | 8248 | lpfc_printf_log(phba, KERN_INFO, LOG_INIT, |
| @@ -8320,6 +8320,8 @@ irq_fail_out: | |||
| 8320 | msi_fail_out: | 8320 | msi_fail_out: |
| 8321 | /* Unconfigure MSI-X capability structure */ | 8321 | /* Unconfigure MSI-X capability structure */ |
| 8322 | pci_disable_msix(phba->pcidev); | 8322 | pci_disable_msix(phba->pcidev); |
| 8323 | |||
| 8324 | vec_fail_out: | ||
| 8323 | return rc; | 8325 | return rc; |
| 8324 | } | 8326 | } |
| 8325 | 8327 | ||
| @@ -8812,7 +8814,7 @@ enable_msix_vectors: | |||
| 8812 | } else if (rc) { | 8814 | } else if (rc) { |
| 8813 | lpfc_printf_log(phba, KERN_INFO, LOG_INIT, | 8815 | lpfc_printf_log(phba, KERN_INFO, LOG_INIT, |
| 8814 | "0484 PCI enable MSI-X failed (%d)\n", rc); | 8816 | "0484 PCI enable MSI-X failed (%d)\n", rc); |
| 8815 | goto msi_fail_out; | 8817 | goto vec_fail_out; |
| 8816 | } | 8818 | } |
| 8817 | 8819 | ||
| 8818 | /* Log MSI-X vector assignment */ | 8820 | /* Log MSI-X vector assignment */ |
| @@ -8875,9 +8877,10 @@ cfg_fail_out: | |||
| 8875 | &phba->sli4_hba.fcp_eq_hdl[index]); | 8877 | &phba->sli4_hba.fcp_eq_hdl[index]); |
| 8876 | } | 8878 | } |
| 8877 | 8879 | ||
| 8878 | msi_fail_out: | ||
| 8879 | /* Unconfigure MSI-X capability structure */ | 8880 | /* Unconfigure MSI-X capability structure */ |
| 8880 | pci_disable_msix(phba->pcidev); | 8881 | pci_disable_msix(phba->pcidev); |
| 8882 | |||
| 8883 | vec_fail_out: | ||
| 8881 | return rc; | 8884 | return rc; |
| 8882 | } | 8885 | } |
| 8883 | 8886 | ||
