kvm: cleanup, fix typing
PATCH 1/1 kvm: cleanup, fix typing
The type of '*new.rmap' is not 'struct page *', fix it
Signed-off-by Lai Jiangshan <[email protected]>
---
virt/kvm/kvm_main.c +1 -1
@@ -596,7 +596,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;
Marcelo Tosatti
AppliedQuoted 3 lines · Lai Jiangshan
The type of '*new.rmap' is not 'struct page *', fix it
Signed-off-by Lai Jiangshan <[email protected]>
Applied this and uaccess cleanup, thanks.