summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJamie Iles <jamie@jamieiles.com>2012-08-30 11:32:13 +0100
committerAvi Kivity <avi@redhat.com>2012-09-04 15:44:42 +0300
commit749c59fd15b2c18dd6c15c353a899fb6ac49b865 (patch)
treed894ee6d459a38746fa33563f3e0cb4a3c45144b /arch
parent5b716ac728bcc01b1f2a7ed6e437196602237c27 (diff)
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 <gleb@redhat.com> Cc: Avi Kivity <avi@redhat.com> Signed-off-by: Jamie Iles <jamie@jamieiles.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/i8259.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c
index e498b18f010c..9fc9aa7ac703 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;