Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;