summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorClaudio Imbrenda <imbrenda@linux.ibm.com>2026-06-02 16:23:55 +0200
committerClaudio Imbrenda <imbrenda@linux.ibm.com>2026-06-02 19:29:33 +0200
commit6ae67dcac742529210a23dac6c9a7de1acfb52a3 (patch)
tree0714ecc9113c21e58fb1f90f95d99e58ab963395 /rust/kernel
parent7b53b4801884d48551f26a17f00cdc0ae4640d64 (diff)
KVM: s390: Fix possible reference leak in fault-in code
If kvm_s390_new_mmu_cache() fails, kvm_s390_faultin_gfn() returns without releasing the faulted page. Fix this by moving the allocation of the memory cache outside of the loop. There is no reason to check at every iteration. Opportunistically fix a comment. Fixes: e907ae530133 ("KVM: s390: Add helper functions for fault handling") Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Message-ID: <20260602142356.169458-10-imbrenda@linux.ibm.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions