projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc9b98
)
KVM: cleanup "*new.rmap" type
author
Lai Jiangshan
<laijs@cn.fujitsu.com>
Wed, 2 Jun 2010 09:01:23 +0000
(17:01 +0800)
committer
Avi Kivity
<avi@redhat.com>
Sun, 1 Aug 2010 07:39:25 +0000
(10:39 +0300)
The type of '*new.rmap' is not 'struct page *', fix it
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/kvm_main.c
patch
|
blob
|
blame
|
history
diff --git
a/virt/kvm/kvm_main.c
b/virt/kvm/kvm_main.c
index 4a71faa96dfd6f0e42fb5a5f8c70a7ec499a24cc..78ed71ad6aa10cc55388c86ff5276caf6383753f 100644
(file)
--- a/
virt/kvm/kvm_main.c
+++ b/
virt/kvm/kvm_main.c
@@
-600,7
+600,7
@@
int __kvm_set_memory_region(struct kvm *kvm,
/* Allocate if a slot is being created */
#ifndef CONFIG_S390
if (npages && !new.rmap) {
- new.rmap = vmalloc(npages * sizeof(
struct page *
));
+ new.rmap = vmalloc(npages * sizeof(
*new.rmap
));
if (!new.rmap)
goto out_free;