diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 7752c1bd46..beb5550ccf 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1944,7 +1944,10 @@ int pci_connect_irq(FAR struct pci_device_s *dev, FAR int *irq, int num) { /* Disalbe MSI */ - pci_disable_msi(dev, msi); + if (msi != 0) + { + pci_disable_msi(dev, msi); + } /* Enable MSI-X */