android_kernel_samsung_msm8976/arch
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
..
alpha vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:34:00 +02:00
arc ARC: make sure instruction_pointer() returns unsigned value 2015-08-10 12:20:30 -07:00
arm ARM: 8517/1: ICST: avoid arithmetic overflow in icst_hz() 2016-02-25 11:57:48 -08:00
arm64 arm64: mm: ensure that the zero page is visible to the page table walker 2016-01-28 21:49:36 -08:00
avr32 vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:34:00 +02:00
blackfin
c6x C6x: time: Ensure consistency in __init 2015-05-06 21:56:28 +02:00
cris vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:34:00 +02:00
frv vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:34:00 +02:00
h8300
hexagon arch: mm: pass userspace fault flag to generic fault handler 2014-11-21 09:22:56 -08:00
ia64 vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:34:00 +02:00
m32r m32r: fix m32104ut_defconfig build fail 2016-02-25 11:57:49 -08:00
m68k m68k/uaccess: Fix asm constraints for userspace access 2015-10-27 09:44:49 +09:00
metag vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:34:00 +02:00
microblaze vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:34:00 +02:00
mips MIPS: KVM: Uninit VCPU in vcpu_create error path 2016-03-03 15:06:20 -08:00
mn10300 mn10300: Select CONFIG_HAVE_UID16 to fix build failure 2016-01-28 21:49:37 -08:00
openrisc openrisc: fix CONFIG_UID16 setting 2016-01-28 21:49:36 -08:00
parisc parisc: Fix __ARCH_SI_PREAMBLE_SIZE 2016-02-19 14:22:38 -08:00
powerpc powerpc: Make {cmp}xchg* and their atomic_ versions fully ordered 2016-01-28 21:49:35 -08:00
s390 s390/sclp: clear upper register halves in _sclp_print_early 2015-08-10 12:20:29 -07:00
score vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:34:00 +02:00
sh sh64: fix __NR_fgetxattr 2016-02-19 14:22:38 -08:00
sparc crypto: sparc - initialize blkcipher.ivsize 2015-10-27 09:44:49 +09:00
tile tile: use free_bootmem_late() for initrd 2015-08-10 12:20:30 -07:00
um vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:34:00 +02:00
unicore32 nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2015-05-06 21:56:28 +02:00
x86 efi: Disable interrupts around EFI calls, not in the epilog/prolog calls 2016-03-03 15:06:19 -08:00
xtensa xtensa: don't use echo -e needlessly 2015-09-21 10:00:10 -07:00
.gitignore
Kconfig microblaze: fix clone syscall 2013-08-20 08:43:02 -07:00