KVM: MMU: fix bogus alloc_mmu_pages assignment
commit322622336aace4c8fbf9e97a96f9cfa91d3cefac
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 18 Sep 2009 23:08:04 +0000 (18 20:08 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 15:27:56 +0000 (5 08:27 -0700)
tree4840850444f69f6034b9ebf8888a7c61a0c1f5bd
parent005270f475352a33f852cbfb9f49945d7953ea61
KVM: MMU: fix bogus alloc_mmu_pages assignment

(cherry picked from commit b90c062c65cc8839edfac39778a37a55ca9bda36)

Remove the bogus n_free_mmu_pages assignment from alloc_mmu_pages.

It breaks accounting of mmu pages, since n_free_mmu_pages is modified
but the real number of pages remains the same.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/mmu.c