From: Avi Kivity Date: Sat, 21 Jul 2007 06:06:46 +0000 (+0300) Subject: KVM: MMU: Fix cleaning up the shadow page allocation cache X-Git-Tag: v2.6.23-rc1~190 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c4d198d5183ec7bbf8b53216cfc5ded7ebb0ec0c;p=linux-2.6-omap-h63xx.git KVM: MMU: Fix cleaning up the shadow page allocation cache __free_page() wants a struct page, not a virtual address. Signed-off-by: Avi Kivity Signed-off-by: Linus Torvalds --- diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index d99d2fe53dc..1a87ba9d515 100644 --- a/drivers/kvm/mmu.c +++ b/drivers/kvm/mmu.c @@ -244,7 +244,7 @@ static int mmu_topup_memory_cache_page(struct kvm_mmu_memory_cache *cache, static void mmu_free_memory_cache_page(struct kvm_mmu_memory_cache *mc) { while (mc->nobjs) - __free_page(mc->objects[--mc->nobjs]); + free_page((unsigned long)mc->objects[--mc->nobjs]); } static int __mmu_topup_memory_caches(struct kvm_vcpu *vcpu, gfp_t gfp_flags)