diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2012-07-03 02:31:01 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-07-03 16:31:50 -0400 |
commit | f411930442e01f9cf1bf4df41ff7e89476575c4d (patch) | |
tree | 4c00179fcc3343604e5f9cab7b6c58ca765df2c8 /virt/kvm/kvm_main.c | |
parent | 326cf0334bacfdf43039cf75997a022b9e51535d (diff) |
KVM: fix fault page leak
fault_page is forgot to be freed
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index e98a5cac55c4..44ee7124b16d 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -2845,6 +2845,7 @@ void kvm_exit(void) | |||
2845 | kvm_arch_hardware_unsetup(); | 2845 | kvm_arch_hardware_unsetup(); |
2846 | kvm_arch_exit(); | 2846 | kvm_arch_exit(); |
2847 | free_cpumask_var(cpus_hardware_enabled); | 2847 | free_cpumask_var(cpus_hardware_enabled); |
2848 | __free_page(fault_page); | ||
2848 | __free_page(hwpoison_page); | 2849 | __free_page(hwpoison_page); |
2849 | __free_page(bad_page); | 2850 | __free_page(bad_page); |
2850 | } | 2851 | } |