mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 18:21:24 +02:00
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: 12f2f61a9e ("KVM: s390: KVM page table management functions: allocation")
CC: stable@vger.kernel.org # 7.1
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20260611104850.110313-4-imbrenda@linux.ibm.com>
This commit is contained in:
parent
5670b7f927
commit
505fcce0c6
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user