diff options
Diffstat (limited to 'kernel/drivers/media/pci/ddbridge')
-rw-r--r-- | kernel/drivers/media/pci/ddbridge/ddbridge-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/drivers/media/pci/ddbridge/ddbridge-core.c b/kernel/drivers/media/pci/ddbridge/ddbridge-core.c index 9e3492e20..0ac2dd35f 100644 --- a/kernel/drivers/media/pci/ddbridge/ddbridge-core.c +++ b/kernel/drivers/media/pci/ddbridge/ddbridge-core.c @@ -1630,7 +1630,8 @@ fail1: printk(KERN_ERR "fail1\n"); if (dev->msi) pci_disable_msi(dev->pdev); - free_irq(dev->pdev->irq, dev); + if (stat == 0) + free_irq(dev->pdev->irq, dev); fail: printk(KERN_ERR "fail\n"); ddb_unmap(dev); |