Skip to content

Commit

Permalink
KVM: fix fault page leak
Browse files Browse the repository at this point in the history
fault_page is forgot to be freed

Signed-off-by: Xiao Guangrong <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
  • Loading branch information
Xiao Guangrong authored and matosatti committed Jul 3, 2012
1 parent 326cf03 commit f411930
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2845,6 +2845,7 @@ void kvm_exit(void)
kvm_arch_hardware_unsetup();
kvm_arch_exit();
free_cpumask_var(cpus_hardware_enabled);
__free_page(fault_page);
__free_page(hwpoison_page);
__free_page(bad_page);
}
Expand Down

0 comments on commit f411930

Please sign in to comment.