From: Wei Yongjun Date: Tue, 9 Feb 2010 02:41:56 +0000 (+0800) Subject: KVM: ia64: destroy ioapic device if fail to setup default irq routing X-Git-Tag: v2.6.34-rc1~193^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b7bb9210047fe880bb71e6273c3a4526799dbd7;p=pandora-kernel.git KVM: ia64: destroy ioapic device if fail to setup default irq routing If KVM_CREATE_IRQCHIP fail due to kvm_setup_default_irq_routing(), ioapic device is not destroyed and kvm->arch.vioapic is not set to NULL, this may cause KVM_GET_IRQCHIP and KVM_SET_IRQCHIP access to unexcepted memory. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity --- Reading git-diff-tree failed