[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86: __pirq_guest_eoi() must check it is called for a fully
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1301132521 0 # Node ID 48dac730a93b27ff60a340564e9a7afd7f9385f4 # Parent 8f001d864fefac689b7662bc9979eaddf4fd6e9c x86: __pirq_guest_eoi() must check it is called for a fully guest-bound irq before accessing desc->action. Signed-off-by: Keir Fraser <keir@xxxxxxx> --- diff -r 8f001d864fef -r 48dac730a93b xen/arch/x86/irq.c --- a/xen/arch/x86/irq.c Sat Mar 26 09:30:38 2011 +0000 +++ b/xen/arch/x86/irq.c Sat Mar 26 09:42:01 2011 +0000 @@ -1022,6 +1022,12 @@ if ( desc == NULL ) return; + if ( !(desc->status & IRQ_GUEST) ) + { + spin_unlock_irq(&desc->lock); + return; + } + action = (irq_guest_action_t *)desc->action; irq = desc - irq_desc; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |