[PATCH] i386: handle a negative return value
authorAdrian Bunk <bunk@stusta.de>
Thu, 7 Dec 2006 01:14:11 +0000 (02:14 +0100)
committerAndi Kleen <andi@basil.nowhere.org>
Thu, 7 Dec 2006 01:14:11 +0000 (02:14 +0100)
commit956fb53197f82257974f1f9835485aeeef4510b3
treecd52c05cfa4b11234eb307b6b1999cef3a25f138
parente1cccf48b182dd743c3c83a4fdf8dc570a43b393
[PATCH] i386: handle a negative return value

The Coverity checker noted that bad things might happen if
find_isa_irq_apic() returned -1.

[akpm@osdl.org: add debugging checks]
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Acked-by: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
arch/i386/kernel/io_apic.c