3ab5d775a1
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=4293852b248e1f267831a4305b1c05a9
21 lines
596 B
Diff
21 lines
596 B
Diff
# HG changeset patch
|
|
# User Keir Fraser <keir.fraser@citrix.com>
|
|
# Date 1277917869 -3600
|
|
# Node ID 81d6471ff1235fde2c30428b920cb6e00ba546d6
|
|
# Parent a9caa0f2d693a1d0d008b4295e49da3ea1d70334
|
|
x86: fix an off-by-one pirq range check
|
|
|
|
Signed-off-by: Jan Beulich <jbeulich@novell.com>
|
|
|
|
--- a/xen/arch/x86/irq.c
|
|
+++ b/xen/arch/x86/irq.c
|
|
@@ -1019,7 +1019,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);
|