diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/msi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index e6740d1a0824..d9cbd586ae4b 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -549,8 +549,10 @@ static int msi_free_irqs(struct pci_dev* dev) | |||
549 | { | 549 | { |
550 | struct msi_desc *entry, *tmp; | 550 | struct msi_desc *entry, *tmp; |
551 | 551 | ||
552 | list_for_each_entry(entry, &dev->msi_list, list) | 552 | list_for_each_entry(entry, &dev->msi_list, list) { |
553 | BUG_ON(irq_has_action(entry->irq)); | 553 | if (entry->irq) |
554 | BUG_ON(irq_has_action(entry->irq)); | ||
555 | } | ||
554 | 556 | ||
555 | arch_teardown_msi_irqs(dev); | 557 | arch_teardown_msi_irqs(dev); |
556 | 558 | ||