]> git.hungrycats.org Git - linux/commit
KVM: MMU: Fix another largepage memory leak
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 26 Mar 2009 23:05:07 +0000 (23:05 +0000)
committerChris Wright <chrisw@sous-sol.org>
Thu, 2 Apr 2009 20:55:19 +0000 (13:55 -0700)
commit716fd1dac0a807fdc4c750a5f967ffcc9d9ea744
treee07d74e4cf7a3e19bbf45559f1dd8a2ed2dd05c3
parentcbb76e6c205242d8889f9979d53f22a43328b9ec
KVM: MMU: Fix another largepage memory leak

upstream commit: c5bc22424021cabda862727fb3f5098b866f074d

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>
[chrisw: backport to 2.6.29]
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/x86/kvm/paging_tmpl.h