Message ID | 20220707134733.2436629-2-dmitry.baryshkov@linaro.org |
---|---|
State | Accepted |
Commit | 3c62f878a9695111a43dc2c1f90cf4b15efc76a0 |
Headers | show |
Series | [v17,1/6] PCI: dwc: Correct msi_irq condition in dw_pcie_free_msi() | expand |
diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c b/drivers/pci/controller/dwc/pcie-designware-host.c index 79ade8b79b6d..49f1a786404e 100644 --- a/drivers/pci/controller/dwc/pcie-designware-host.c +++ b/drivers/pci/controller/dwc/pcie-designware-host.c @@ -257,7 +257,7 @@ int dw_pcie_allocate_domains(struct dw_pcie_rp *pp) static void dw_pcie_free_msi(struct dw_pcie_rp *pp) { - if (pp->msi_irq) + if (pp->msi_irq > 0) irq_set_chained_handler_and_data(pp->msi_irq, NULL, NULL); irq_domain_remove(pp->msi_domain);