aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--virt/kvm/kvm_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 246cf291c6fd..a8490f084483 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -675,6 +675,7 @@ static void update_memslots(struct kvm_memslots *slots,
675 if (!new->npages) { 675 if (!new->npages) {
676 WARN_ON(!mslots[i].npages); 676 WARN_ON(!mslots[i].npages);
677 new->base_gfn = 0; 677 new->base_gfn = 0;
678 new->flags = 0;
678 if (mslots[i].npages) 679 if (mslots[i].npages)
679 slots->used_slots--; 680 slots->used_slots--;
680 } else { 681 } else {