diff options
author | 2010-01-22 14:18:47 +0800 | |
---|---|---|
committer | 2010-01-25 12:26:40 -0200 | |
commit | 36cb93fd6b6bf7e9163a69a8bf20207aed5fea44 (patch) | |
tree | ec12f37abfee010a968001e513ba5813d0d1b615 /kernel/sys.c | |
parent | KVM: S390: fix potential array overrun in intercept handling (diff) | |
download | linux-rng-36cb93fd6b6bf7e9163a69a8bf20207aed5fea44.tar.xz linux-rng-36cb93fd6b6bf7e9163a69a8bf20207aed5fea44.zip |
KVM: x86: Fix probable memory leak of vcpu->arch.mce_banks
vcpu->arch.mce_banks is malloc in kvm_arch_vcpu_init(), but
never free in any place, this may cause memory leak. So this
patch fixed to free it in kvm_arch_vcpu_uninit().
Cc: stable@kernel.org
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions