commit | ae0635b3580844e320a253a16985f4ce8b5bd0b6 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Tue Jul 27 14:51:44 2010 +0300 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Wed Sep 08 14:50:56 2010 -0300 |
tree | cbb5d9c113a9b69cb6438664f7eed1137b6f3fdf | |
parent | 16518d5ada690643453eb0aef3cc7841d3623c2d [diff] |
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: Avi Kivity <avi@redhat.com>
diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c index 8d10c06..4b7b73c 100644 --- a/arch/x86/kvm/i8259.c +++ b/arch/x86/kvm/i8259.c
@@ -64,6 +64,9 @@ if (!found) found = s->kvm->bsp_vcpu; + if (!found) + return; + kvm_vcpu_kick(found); } }