Files
linux/arch/mips
James Hogan 40b295b30e MIPS: KVM: Uninit VCPU in vcpu_create error path
commit 585bb8f9a5 upstream.

If either of the memory allocations in kvm_arch_vcpu_create() fail, the
vcpu which has been allocated and kvm_vcpu_init'd doesn't get uninit'd
in the error handling path. Add a call to kvm_vcpu_uninit() to fix this.

Fixes: 669e846e6c ("KVM/MIPS32: MIPS arch specific APIs for KVM")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-12-09 14:34:15 -05:00
..
2013-11-26 12:12:27 +01:00
2015-12-09 14:34:13 -05:00
2015-10-02 09:48:57 +02:00
2015-08-26 15:23:03 +02:00
2014-05-30 16:10:20 +02:00