android_kernel_samsung_msm8976/arch/mips/kvm
James Hogan 23a9a7dc6f MIPS: KVM: Uninit VCPU in vcpu_create error path
commit 585bb8f9a5e592f2ce7abbe5ed3112d5438d2754 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: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-03 15:06:20 -08:00
..
00README.txt KVM/MIPS32: Release notes and KVM module Makefile 2013-05-08 03:55:35 +02:00
Kconfig
kvm_cb.c
kvm_locore.S MIPS: KVM: Fix ASID restoration logic 2016-03-03 15:06:20 -08:00
kvm_mips.c MIPS: KVM: Uninit VCPU in vcpu_create error path 2016-03-03 15:06:20 -08:00
kvm_mips_comm.h
kvm_mips_commpage.c
kvm_mips_dyntrans.c
kvm_mips_emul.c MIPS: KVM: Fix CACHE immediate offset sign extension 2016-03-03 15:06:20 -08:00
kvm_mips_int.c
kvm_mips_int.h
kvm_mips_opcode.h
kvm_mips_stats.c
kvm_tlb.c Merge git://git.kernel.org/pub/scm/virt/kvm/kvm 2013-05-23 09:18:08 -07:00
kvm_trap_emul.c mips/kvm: Fix ABI by moving manipulation of CP0 registers to KVM_{G,S}ET_ONE_REG 2013-06-03 10:58:54 +03:00
Makefile
trace.h KVM: MIPS: Fix trace event to save PC directly 2015-03-18 13:22:29 +01:00