From 3bd89007ab4243b36bc30f5fc4aa8b4f75ff8fc2 Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Wed, 2 Jun 2010 17:01:23 +0800 Subject: KVM: cleanup "*new.rmap" type The type of '*new.rmap' is not 'struct page *', fix it Signed-off-by: Lai Jiangshan Signed-off-by: Marcelo Tosatti --- virt/kvm/kvm_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'virt/kvm') diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 4a71faa96dfd..78ed71ad6aa1 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; -- cgit v1.2.3