From: Jamie Iles Date: Thu, 30 Aug 2012 10:32:13 +0000 (+0100) Subject: KVM: PIC: fix use of uninitialised variable. X-Git-Tag: v3.6-rc6~34^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=749c59fd15b2c18dd6c15c353a899fb6ac49b865;p=platform%2Fkernel%2Flinux-3.10.git KVM: PIC: fix use of uninitialised variable. Commit aea218f3cbbc (KVM: PIC: call ack notifiers for irqs that are dropped form irr) used an uninitialised variable to track whether an appropriate apic had been found. This could result in calling the ack notifier incorrectly. Cc: Gleb Natapov Cc: Avi Kivity Signed-off-by: Jamie Iles Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c index e498b18..9fc9aa7 100644 --- a/arch/x86/kvm/i8259.c +++ b/arch/x86/kvm/i8259.c @@ -318,7 +318,7 @@ static void pic_ioport_write(void *opaque, u32 addr, u32 val) if (val & 0x10) { u8 edge_irr = s->irr & ~s->elcr; int i; - bool found; + bool found = false; struct kvm_vcpu *vcpu; s->init4 = val & 1;