diff options
author | James Smart <james.smart@emulex.com> | 2013-09-06 12:21:19 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-09-10 20:29:21 -0400 |
commit | acbd86160acdd68946e24a71e608d832c9c9bc1c (patch) | |
tree | d36929792a18e14866887b133dcc729cdc373ebc /drivers/scsi/lpfc | |
parent | f5ca6f2e770530434da66db92f7394e7b4081e56 (diff) |
[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>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 6e5a735702d3..c6f1333476fd 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -8691,9 +8691,12 @@ enable_msix_vectors: | |||
8691 | 8691 | ||
8692 | cfg_fail_out: | 8692 | cfg_fail_out: |
8693 | /* free the irq already requested */ | 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 | free_irq(phba->sli4_hba.msix_entries[index].vector, | 8697 | free_irq(phba->sli4_hba.msix_entries[index].vector, |
8696 | &phba->sli4_hba.fcp_eq_hdl[index]); | 8698 | &phba->sli4_hba.fcp_eq_hdl[index]); |
8699 | } | ||
8697 | 8700 | ||
8698 | msi_fail_out: | 8701 | msi_fail_out: |
8699 | /* Unconfigure MSI-X capability structure */ | 8702 | /* Unconfigure MSI-X capability structure */ |
@@ -8714,9 +8717,12 @@ lpfc_sli4_disable_msix(struct lpfc_hba *phba) | |||
8714 | int index; | 8717 | int index; |
8715 | 8718 | ||
8716 | /* Free up MSI-X multi-message vectors */ | 8719 | /* Free up MSI-X multi-message vectors */ |
8717 | for (index = 0; index < phba->cfg_fcp_io_channel; index++) | 8720 | for (index = 0; index < phba->cfg_fcp_io_channel; index++) { |
8721 | irq_set_affinity_hint(phba->sli4_hba.msix_entries[index]. | ||
8722 | vector, NULL); | ||
8718 | free_irq(phba->sli4_hba.msix_entries[index].vector, | 8723 | free_irq(phba->sli4_hba.msix_entries[index].vector, |
8719 | &phba->sli4_hba.fcp_eq_hdl[index]); | 8724 | &phba->sli4_hba.fcp_eq_hdl[index]); |
8725 | } | ||
8720 | 8726 | ||
8721 | /* Disable MSI-X */ | 8727 | /* Disable MSI-X */ |
8722 | pci_disable_msix(phba->pcidev); | 8728 | pci_disable_msix(phba->pcidev); |