From: Wei Yongjun Date: Tue, 9 Feb 2010 02:33:03 +0000 (+0800) Subject: KVM: cleanup the failure path of KVM_CREATE_IRQCHIP ioctrl X-Git-Tag: v2.6.34-rc1~193^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72bb2fcd23afe8db53b47e8f9edd736c517ba532;p=pandora-kernel.git KVM: cleanup the failure path of KVM_CREATE_IRQCHIP ioctrl If we fail to init ioapic device or the fail to setup the default irq routing, the device register by kvm_create_pic() and kvm_ioapic_init() remain unregister. This patch fixed to do this. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity --- Reading git-diff-tree failed