KVM: fix i8259 oops when no vcpus are online
authorAvi Kivity <avi@redhat.com>
Tue, 27 Jul 2010 11:51:44 +0000 (14:51 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 8 Sep 2010 17:50:56 +0000 (14:50 -0300)
commitae0635b3580844e320a253a16985f4ce8b5bd0b6
treecbb5d9c113a9b69cb6438664f7eed1137b6f3fdf
parent16518d5ada690643453eb0aef3cc7841d3623c2d
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>
arch/x86/kvm/i8259.c