mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 01:57:08 +07:00
[SCSI] lpfc 8.3.42: Fix WARN_ON when driver unloads
Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
f5ca6f2e77
commit
acbd86160a
@ -8691,9 +8691,12 @@ lpfc_sli4_enable_msix(struct lpfc_hba *phba)
|
|||||||
|
|
||||||
cfg_fail_out:
|
cfg_fail_out:
|
||||||
/* free the irq already requested */
|
/* free the irq already requested */
|
||||||
for (--index; index >= 0; index--)
|
for (--index; index >= 0; index--) {
|
||||||
|
irq_set_affinity_hint(phba->sli4_hba.msix_entries[index].
|
||||||
|
vector, NULL);
|
||||||
free_irq(phba->sli4_hba.msix_entries[index].vector,
|
free_irq(phba->sli4_hba.msix_entries[index].vector,
|
||||||
&phba->sli4_hba.fcp_eq_hdl[index]);
|
&phba->sli4_hba.fcp_eq_hdl[index]);
|
||||||
|
}
|
||||||
|
|
||||||
msi_fail_out:
|
msi_fail_out:
|
||||||
/* Unconfigure MSI-X capability structure */
|
/* Unconfigure MSI-X capability structure */
|
||||||
@ -8714,9 +8717,12 @@ lpfc_sli4_disable_msix(struct lpfc_hba *phba)
|
|||||||
int index;
|
int index;
|
||||||
|
|
||||||
/* Free up MSI-X multi-message vectors */
|
/* Free up MSI-X multi-message vectors */
|
||||||
for (index = 0; index < phba->cfg_fcp_io_channel; index++)
|
for (index = 0; index < phba->cfg_fcp_io_channel; index++) {
|
||||||
|
irq_set_affinity_hint(phba->sli4_hba.msix_entries[index].
|
||||||
|
vector, NULL);
|
||||||
free_irq(phba->sli4_hba.msix_entries[index].vector,
|
free_irq(phba->sli4_hba.msix_entries[index].vector,
|
||||||
&phba->sli4_hba.fcp_eq_hdl[index]);
|
&phba->sli4_hba.fcp_eq_hdl[index]);
|
||||||
|
}
|
||||||
|
|
||||||
/* Disable MSI-X */
|
/* Disable MSI-X */
|
||||||
pci_disable_msix(phba->pcidev);
|
pci_disable_msix(phba->pcidev);
|
||||||
|
Loading…
Reference in New Issue
Block a user