]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: lpfc: Free phba irq in lpfc_sli4_enable_msi() when pci_irq_vector() fails
authorJustin Tee <justin.tee@broadcom.com>
Fri, 31 Jan 2025 00:05:20 +0000 (16:05 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 4 Feb 2025 02:53:22 +0000 (21:53 -0500)
commitf0842902b383982d1f72c490996aa8fc29a7aa0d
tree7ec8f87e99c4b12b6d30d9d4b20de55462cac939
parent8eccc58d71eafbd2635077916b68fda15791d270
scsi: lpfc: Free phba irq in lpfc_sli4_enable_msi() when pci_irq_vector() fails

Fix smatch warning regarding missed calls to free_irq().  Free the phba IRQ
in the failed pci_irq_vector cases.

lpfc_init.c: lpfc_sli4_enable_msi() warn: 'phba->pcidev->irq' from
             request_irq() not released.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20250131000524.163662-3-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c