Commit:     c4d198d5183ec7bbf8b53216cfc5ded7ebb0ec0c
Parent:     5c4c1489b93c9dc51cc6e97fd73e325ce94983c0
Author:     Avi Kivity <[EMAIL PROTECTED]>
AuthorDate: Sat Jul 21 09:06:46 2007 +0300
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Jul 20 23:48:47 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/kvm/mmu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c
index d99d2fe..1a87ba9 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)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to