Skip to content

Commit 9895cee

Browse files
committed
Merge tag 'kvmarm-fixes-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
KVM/arm64 fixes for 6.8, take #2 - Avoid dropping the page refcount twice when freeing an unlinked page-table subtree.
2 parents 8046fa5 + c60d847 commit 9895cee

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/arm64/kvm/hyp/pgtable.c

-2
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,6 @@ kvm_pte_t *kvm_pgtable_stage2_create_unlinked(struct kvm_pgtable *pgt,
14191419
level + 1);
14201420
if (ret) {
14211421
kvm_pgtable_stage2_free_unlinked(mm_ops, pgtable, level);
1422-
mm_ops->put_page(pgtable);
14231422
return ERR_PTR(ret);
14241423
}
14251424

@@ -1502,7 +1501,6 @@ static int stage2_split_walker(const struct kvm_pgtable_visit_ctx *ctx,
15021501

15031502
if (!stage2_try_break_pte(ctx, mmu)) {
15041503
kvm_pgtable_stage2_free_unlinked(mm_ops, childp, level);
1505-
mm_ops->put_page(childp);
15061504
return -EAGAIN;
15071505
}
15081506

0 commit comments

Comments
 (0)