diff options
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 141a0166e51c..32e3a7ec6ad2 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -1835,6 +1835,12 @@ long kvm_arch_vm_ioctl(struct file *filp, | |||
1835 | } | 1835 | } |
1836 | } else | 1836 | } else |
1837 | goto out; | 1837 | goto out; |
1838 | r = kvm_setup_default_irq_routing(kvm); | ||
1839 | if (r) { | ||
1840 | kfree(kvm->arch.vpic); | ||
1841 | kfree(kvm->arch.vioapic); | ||
1842 | goto out; | ||
1843 | } | ||
1838 | break; | 1844 | break; |
1839 | case KVM_CREATE_PIT: | 1845 | case KVM_CREATE_PIT: |
1840 | mutex_lock(&kvm->lock); | 1846 | mutex_lock(&kvm->lock); |