From: Claudio Imbrenda Date: Thu, 11 Jun 2026 10:48:48 +0000 (+0200) Subject: KVM: s390: vsie: Fix allocation of struct vsie_rmap X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=505fcce0c64957f475f9b11fb1403821b7f33e7e;p=thirdparty%2Fkernel%2Flinux.git KVM: s390: vsie: Fix allocation of struct vsie_rmap The allocation size for struct vsie_rmap in kvm_s390_mmu_cache_topup() was wrong due to a copy-paste error. Fix it by using the type name. Fixes: 12f2f61a9e1a ("KVM: s390: KVM page table management functions: allocation") CC: stable@vger.kernel.org # 7.1 Signed-off-by: Claudio Imbrenda Message-ID: <20260611104850.110313-4-imbrenda@linux.ibm.com> --- diff --git a/arch/s390/kvm/dat.c b/arch/s390/kvm/dat.c index 4a41c0247ffa..a4fe664f65ee 100644 --- a/arch/s390/kvm/dat.c +++ b/arch/s390/kvm/dat.c @@ -45,7 +45,7 @@ int kvm_s390_mmu_cache_topup(struct kvm_s390_mmu_cache *mc) mc->pts[mc->n_pts] = o; } for ( ; mc->n_rmaps < KVM_S390_MMU_CACHE_N_RMAPS; mc->n_rmaps++) { - o = kzalloc_obj(*mc->rmaps[0], GFP_KERNEL_ACCOUNT); + o = kzalloc_obj(struct vsie_rmap, GFP_KERNEL_ACCOUNT); if (!o) return -ENOMEM; mc->rmaps[mc->n_rmaps] = o;