KVM: do not kfree error pointer
authorGuo Chao <yan@linux.vnet.ibm.com>
Fri, 2 Nov 2012 10:33:21 +0000 (18:33 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 14 Nov 2012 00:14:28 +0000 (22:14 -0200)
commit18595411a7146330ec19adf0b9db8e6736c84a4e
treee92309d75edc34d48830b5d7712876a03dbde5c0
parentf026399fc90655ac444c62139aa4f8a02e1c795a
KVM: do not kfree error pointer

We should avoid kfree()ing error pointer in kvm_vcpu_ioctl() and
kvm_arch_vcpu_ioctl().

Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c
virt/kvm/kvm_main.c