projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e67a807
)
x86: Fix NULL pointer access in irq_force_complete_move() for Xen guests
author
Prarit Bhargava
<
[email protected]
>
Tue, 27 Apr 2010 15:24:42 +0000
(11:24 -0400)
committer
H. Peter Anvin
<
[email protected]
>
Fri, 30 Apr 2010 21:31:38 +0000
(14:31 -0700)
Upstream PV guests fail to boot because of a NULL pointer in
irq_force_complete_move(). It is possible that xen guests have
irq_desc->chip_data = NULL.
Test for NULL chip_data pointer before attempting to complete an irq move.
Signed-off-by: Prarit Bhargava <
[email protected]
>
LKML-Reference: <
20100427152434
[email protected]
>
Acked-by: Suresh Siddha <
[email protected]
>
Signed-off-by: H. Peter Anvin <
[email protected]
>
Cc: <
[email protected]
> [2.6.33]
arch/x86/kernel/apic/io_apic.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/apic/io_apic.c
b/arch/x86/kernel/apic/io_apic.c
index 127b8718abfb0abd389334865f0bf3159b8e0fa3..eb2789c3f7216a43eb4017e44fed32556a703918 100644
(file)
--- a/
arch/x86/kernel/apic/io_apic.c
+++ b/
arch/x86/kernel/apic/io_apic.c
@@
-2545,6
+2545,9
@@
void irq_force_complete_move(int irq)
struct irq_desc *desc = irq_to_desc(irq);
struct irq_cfg *cfg = desc->chip_data;
+ if (!cfg)
+ return;
+
__irq_complete_move(&desc, cfg->vector);
}
#else