aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 1 insertions, 1 deletions
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,
600 /* Allocate if a slot is being created */ 600 /* Allocate if a slot is being created */
601#ifndef CONFIG_S390 601#ifndef CONFIG_S390
602 if (npages && !new.rmap) { 602 if (npages && !new.rmap) {
603 new.rmap = vmalloc(npages * sizeof(struct page *)); 603 new.rmap = vmalloc(npages * sizeof(*new.rmap));
604 604
605 if (!new.rmap) 605 if (!new.rmap)
606 goto out_free; 606 goto out_free;