All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: fix an off-by-one pirq range check
@ 2010-06-30  6:37 Jan Beulich
  2010-06-30 16:16 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Beulich @ 2010-06-30  6:37 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- 2010-06-15.orig/xen/arch/x86/irq.c	2010-06-15 13:23:00.000000000 +0200
+++ 2010-06-15/xen/arch/x86/irq.c	2010-06-29 10:15:13.000000000 +0200
@@ -1027,7 +1027,7 @@ static void __pirq_guest_eoi(struct doma
 
 int pirq_guest_eoi(struct domain *d, int irq)
 {
-    if ( (irq < 0) || (irq > d->nr_pirqs) )
+    if ( (irq < 0) || (irq >= d->nr_pirqs) )
         return -EINVAL;
 
     __pirq_guest_eoi(d, irq);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-01 16:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-30  6:37 [PATCH] x86: fix an off-by-one pirq range check Jan Beulich
2010-06-30 16:16 ` Konrad Rzeszutek Wilk
2010-07-01  7:27   ` Jan Beulich
2010-07-01 16:19     ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.