From: Dean Nelson Date: Fri, 5 Sep 2008 14:07:20 +0000 (-0500) Subject: irq: error missed ifndef CONFIG_HAVE_SPARSE_IRQ X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e65ef88c20d5c68bde18f559e0d0ad7d718beb28;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git irq: error missed ifndef CONFIG_HAVE_SPARSE_IRQ An error return from create_irq_nr() is 0, but an error return from create_irq() is -1. Signed-off-by: Dean Nelson Cc: Yinghai Lu Signed-off-by: Ingo Molnar --- diff --git a/drivers/pci/htirq.c b/drivers/pci/htirq.c index 7c5aef13fcdb..7b180e0c634e 100644 --- a/drivers/pci/htirq.c +++ b/drivers/pci/htirq.c @@ -144,7 +144,7 @@ int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update) #else irq = create_irq(); #endif - if (irq == 0) { + if (irq <= 0) { kfree(cfg); return -EBUSY; }