ff4b346ede
disk fails with UnboundLocalError: local variable 'dev_type' referenced before assignment 21678-xend-mac-fix.patch - bnc#586221 - cannot add DomU with USB host controller defined domu-usb-controller.patch (Chun Yan Liu) - Upstream patches from Jan 21151-trace-bounds-check.patch 21627-cpuidle-wrap.patch 21643-vmx-vpmu-pmc-offset.patch 21682-trace-buffer-range.patch 21683-vtd-kill-timer-conditional.patch 21693-memevent-64bit-only.patch 21695-trace-t_info-readonly.patch 21698-x86-pirq-range-check.patch 21699-p2m-query-for-type-change.patch 21700-32on64-vm86-gpf.patch 21705-trace-printk.patch 21706-trace-security.patch 21712-amd-osvw.patch 21744-x86-cpufreq-range-check.patch - bnc #599550 - Xen cannot distinguish the status of 'pause' addcommand_domstate.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=63
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);
|