diff options
author | Dean Nelson <dcn@sgi.com> | 2008-09-05 09:07:20 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 16:53:06 +0200 |
commit | e65ef88c20d5c68bde18f559e0d0ad7d718beb28 (patch) | |
tree | 7858cb3c5aa6f32248da5efea57500610a3857b3 /drivers/pci | |
parent | ac54a6c9371bacb86bee1db23f7d82e8685c7e17 (diff) | |
download | kernel_samsung_tuna-e65ef88c20d5c68bde18f559e0d0ad7d718beb28.zip kernel_samsung_tuna-e65ef88c20d5c68bde18f559e0d0ad7d718beb28.tar.gz kernel_samsung_tuna-e65ef88c20d5c68bde18f559e0d0ad7d718beb28.tar.bz2 |
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 <dcn@sgi.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/htirq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/htirq.c b/drivers/pci/htirq.c index 7c5aef1..7b180e0 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; } |