KVM: kvm->arch.vioapic should be NULL if kvm_ioapic_init() failure
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 9 Feb 2010 02:31:09 +0000 (10:31 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:09 +0000 (12:36 -0300)
commit1ae77badc2504d157800f10a81a58cc9c941e7cb
tree57f590b82a8e20863635ce8b528b79c022b0a8e9
parentd225f53b76f4287365efd381b9e3a732e6bad27e
KVM: kvm->arch.vioapic should be NULL if kvm_ioapic_init() failure

kvm->arch.vioapic should be NULL in case of kvm_ioapic_init() failure
due to cannot register io dev.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/ioapic.c