Commit 3bd89007 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Avi Kivity

KVM: cleanup "*new.rmap" type

The type of '*new.rmap' is not 'struct page *', fix it
Signed-off-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 4bc9b982
...@@ -600,7 +600,7 @@ int __kvm_set_memory_region(struct kvm *kvm, ...@@ -600,7 +600,7 @@ int __kvm_set_memory_region(struct kvm *kvm,
/* Allocate if a slot is being created */ /* Allocate if a slot is being created */
#ifndef CONFIG_S390 #ifndef CONFIG_S390
if (npages && !new.rmap) { if (npages && !new.rmap) {
new.rmap = vmalloc(npages * sizeof(struct page *)); new.rmap = vmalloc(npages * sizeof(*new.rmap));
if (!new.rmap) if (!new.rmap)
goto out_free; goto out_free;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment