[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>

authored by James Smart and committed by James Bottomley acbd8616 f5ca6f2e

+8 -2
+8 -2
drivers/scsi/lpfc/lpfc_init.c
··· 8691 8691 8692 8692 cfg_fail_out: 8693 8693 /* free the irq already requested */ 8694 - for (--index; index >= 0; index--) 8694 + for (--index; index >= 0; index--) { 8695 + irq_set_affinity_hint(phba->sli4_hba.msix_entries[index]. 8696 + vector, NULL); 8695 8697 free_irq(phba->sli4_hba.msix_entries[index].vector, 8696 8698 &phba->sli4_hba.fcp_eq_hdl[index]); 8699 + } 8697 8700 8698 8701 msi_fail_out: 8699 8702 /* Unconfigure MSI-X capability structure */ ··· 8717 8714 int index; 8718 8715 8719 8716 /* Free up MSI-X multi-message vectors */ 8720 - for (index = 0; index < phba->cfg_fcp_io_channel; index++) 8717 + for (index = 0; index < phba->cfg_fcp_io_channel; index++) { 8718 + irq_set_affinity_hint(phba->sli4_hba.msix_entries[index]. 8719 + vector, NULL); 8721 8720 free_irq(phba->sli4_hba.msix_entries[index].vector, 8722 8721 &phba->sli4_hba.fcp_eq_hdl[index]); 8722 + } 8723 8723 8724 8724 /* Disable MSI-X */ 8725 8725 pci_disable_msix(phba->pcidev);