On Tue, 2006-09-26 at 09:15 -0700, Linus Torvalds wrote: > That NO_IRQ thing should be zero, and any architecture that thinks that > zero is a valid IRQ just needs to fix its own irq mapping so that the > "cookie" doesn't work. > The thing is, it's zero. Get over it. Signed-off-by: David Woodhouse <[email protected]> diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 92be519..0cdf8ad 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -219,7 +219,7 @@ int setup_irq(unsigned int irq, struct i unsigned long flags; int shared = 0; - if (irq >= NR_IRQS) + if (!irq || irq >= NR_IRQS) return -EINVAL; if (desc->chip == &no_irq_chip) -- dwmw2 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [PATCH] restore libata build on frv
- From: Al Viro <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: Alan Cox <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: Alan Cox <[email protected]>
- [PATCH] restore libata build on frv
- From: Al Viro <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: David Howells <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: David Howells <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: David Howells <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: David Howells <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: Alan Cox <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: David Woodhouse <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: Jeff Garzik <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: David Woodhouse <[email protected]>
- Re: [PATCH] restore libata build on frv
- From: Linus Torvalds <[email protected]>
- Re: [PATCH] restore libata build on frv
- Prev by Date: Re: x86/x86-64 merge for 2.6.19
- Next by Date: Re: Problem of using a PCI device in a Hot Plug PCI slot
- Previous by thread: Re: [PATCH] restore libata build on frv
- Next by thread: Re: [PATCH] restore libata build on frv
- Index(es):