[PATCH 3.12 051/170] MIPS: KVM: Fix memory leak on VCPU

2014-07-18 Thread Jiri Slaby
From: Deng-Cheng Zhu 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8c9eb041cf76038eb3b62ee259607eec9b89f48d upstream. kvm_arch_vcpu_free() is called in 2 code paths: 1) kvm_vm_ioctl() kvm_vm_ioctl_create_vcpu()

[PATCH 3.12 051/170] MIPS: KVM: Fix memory leak on VCPU

2014-07-18 Thread Jiri Slaby
From: Deng-Cheng Zhu dengcheng@imgtec.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8c9eb041cf76038eb3b62ee259607eec9b89f48d upstream. kvm_arch_vcpu_free() is called in 2 code paths: 1) kvm_vm_ioctl()