projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c4c148
)
KVM: MMU: Fix cleaning up the shadow page allocation cache
author
Avi Kivity
<avi@qumranet.com>
Sat, 21 Jul 2007 06:06:46 +0000
(09:06 +0300)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Sat, 21 Jul 2007 06:48:47 +0000
(23:48 -0700)
__free_page() wants a struct page, not a virtual address.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/kvm/mmu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/kvm/mmu.c
b/drivers/kvm/mmu.c
index d99d2fe53dcaa2f081ef714cf1130e41f1434657..1a87ba9d515620986e079d64fd83ff546054a9b7 100644
(file)
--- 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)