Skip to contentSkip to conversation

kvm: cleanup, fix typing

PATCH Applied Lai Jiangshan 2 participants 2 messages Jun 2, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm: cleanup, fix typing

The type of '*new.rmap' is not 'struct page *', fix it

---

virt/kvm/kvm_main.c +1 -1
index 9ab1a77..cab7839 100644
@@ -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;