Commit ae0635b3 authored by Avi Kivity's avatar Avi Kivity Committed by Marcelo Tosatti

KVM: fix i8259 oops when no vcpus are online

If there are no vcpus, found will be NULL.  Check before doing anything with
it.
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 16518d5a
......@@ -64,6 +64,9 @@ static void pic_unlock(struct kvm_pic *s)
if (!found)
found = s->kvm->bsp_vcpu;
if (!found)
return;
kvm_vcpu_kick(found);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment