linux-stable/arch
nixiaoming 43f6b0cfb2 KVM: PPC: Book3S HV: Fix memory leak in kvm_vm_ioctl_get_htab_fd
We do ctx = kzalloc(sizeof(*ctx), GFP_KERNEL) and then later on call
anon_inode_getfd(), but if that fails we don't free ctx, so that
memory gets leaked.  To fix it, this adds kfree(ctx) in the failure
path.

Signed-off-by: nixiaoming <nixiaoming@huawei.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
2017-09-01 10:17:58 +10:00
..
alpha
arc dma-coherent: introduce interface for default DMA pool 2017-07-20 16:09:10 +02:00
arm KVM: arm: implements the kvm_arch_vcpu_in_kernel() 2017-08-08 10:57:43 +02:00
arm64 KVM: arm: implements the kvm_arch_vcpu_in_kernel() 2017-08-08 10:57:43 +02:00
blackfin Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-07-21 10:41:19 -07:00
c6x
cris
frv
h8300
hexagon
ia64
m32r
m68k
metag
microblaze
mips KVM: add spinlock optimization framework 2017-08-08 10:57:43 +02:00
mn10300 Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-07-21 10:41:19 -07:00
nios2
openrisc
parisc parisc: Define CONFIG_CPU_BIG_ENDIAN 2017-07-31 17:51:27 +02:00
powerpc KVM: PPC: Book3S HV: Fix memory leak in kvm_vm_ioctl_get_htab_fd 2017-09-01 10:17:58 +10:00
s390 KVM: s390: implements the kvm_arch_vcpu_in_kernel() 2017-08-08 10:57:43 +02:00
score
sh TTY/Serial fixes for 4.13-rc2 2017-07-22 09:00:24 -07:00
sparc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc 2017-08-04 10:17:45 -07:00
tile
um
unicore32
x86 kvm: nVMX: Validate the virtual-APIC address on nested VM-entry 2017-08-25 12:34:16 +02:00
xtensa
.gitignore
Kconfig