KVM: s390: pv: fix index value of replaced ASCE
[platform/kernel/linux-starfive.git] / arch / s390 / mm / gmap.c
index 02d15c8..243f673 100644 (file)
@@ -2843,6 +2843,7 @@ int s390_replace_asce(struct gmap *gmap)
        page = alloc_pages(GFP_KERNEL_ACCOUNT, CRST_ALLOC_ORDER);
        if (!page)
                return -ENOMEM;
+       page->index = 0;
        table = page_to_virt(page);
        memcpy(table, gmap->table, 1UL << (CRST_ALLOC_ORDER + PAGE_SHIFT));