aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2010-06-02 17:01:23 +0800
committerAvi Kivity <avi@redhat.com>2010-08-01 10:39:25 +0300
commit3bd89007ab4243b36bc30f5fc4aa8b4f75ff8fc2 (patch)
tree767e81b4cbb763a4477e26ef331ffe4e3ffaeaba /virt/kvm
parent4bc9b9828150747386130ab172f7e868e1a0fc2a (diff)
downloadkernel_samsung_crespo-3bd89007ab4243b36bc30f5fc4aa8b4f75ff8fc2.zip
kernel_samsung_crespo-3bd89007ab4243b36bc30f5fc4aa8b4f75ff8fc2.tar.gz
kernel_samsung_crespo-3bd89007ab4243b36bc30f5fc4aa8b4f75ff8fc2.tar.bz2
KVM: cleanup "*new.rmap" type
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>
Diffstat (limited to 'virt/kvm')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 4a71faa..78ed71a 100644
--- 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;