KVM: MMU: Fix another largepage memory leak
commitc5bc22424021cabda862727fb3f5098b866f074d
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 19 Feb 2009 11:18:56 +0000 (19 12:18 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:11 +0000 (24 11:03 +0200)
tree587212e2615c9e33dcbe6372ea8243ffd0bbb06b
parent1fbdc7a58512a6283e10fd27108197679db95ffa
KVM: MMU: Fix another largepage memory leak

In the paging_fetch function rmap_remove is called after setting a large
pte to non-present. This causes rmap_remove to not drop the reference to
the large page. The result is a memory leak of that page.

Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h