]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
[SCSI] lpfc 8.3.35: Correct missing queue destroy on function reset
authorJames Smart <james.smart@emulex.com>
Mon, 26 Nov 2012 22:50:31 +0000 (15:50 -0700)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Mon, 26 Nov 2012 22:50:31 +0000 (15:50 -0700)
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_sli.c

index eb1eafb78f389d5c7e8cc803ca31877135160df1..da34c779a9583aa8b0adfe15d546dd56308f6341 100644 (file)
@@ -3919,9 +3919,9 @@ lpfc_sli4_brdreset(struct lpfc_hba *phba)
        pci_write_config_word(phba->pcidev, PCI_COMMAND, (cfg_value &
                              ~(PCI_COMMAND_PARITY | PCI_COMMAND_SERR)));
 
-       /* Perform FCoE PCI function reset */
-       lpfc_sli4_queue_destroy(phba);
+       /* Perform FCoE PCI function reset before freeing queue memory */
        rc = lpfc_pci_function_reset(phba);
+       lpfc_sli4_queue_destroy(phba);
 
        /* Restore PCI cmd register */
        pci_write_config_word(phba->pcidev, PCI_COMMAND, cfg_value);