]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
PCI: dwc: Fix dw_pcie_free_msi() if msi_irq is invalid
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Fri, 29 Mar 2019 11:56:25 +0000 (11:56 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 7 May 2019 13:52:23 +0000 (08:52 -0500)
commit3ebc269c197ee6a9788aeb76ebcc9132814a75e5
tree647cd03e288756d0505e7e9e420b5cfe7df25cc9
parent322f03436692481993d389f539c016d20bb0fa1d
PCI: dwc: Fix dw_pcie_free_msi() if msi_irq is invalid

Check msi_irq variable before calling irq_set_chained_handler() and
irq_set_handler_data(), lest we call those functions for an invalid MSI
IRQ.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
drivers/pci/controller/dwc/pcie-designware-host.c