Commit c60d847
KVM: arm64: Fix double-free following kvm_pgtable_stage2_free_unlinked()
kvm_pgtable_stage2_free_unlinked() does the final put_page() on the
root page of the sub-tree before returning, so remove the additional
put_page() invocations in the callers.
Cc: Ricardo Koller <[email protected]>
Fixes: f6a27d6 ("KVM: arm64: Drop last page ref in kvm_pgtable_stage2_free_removed()")
Signed-off-by: Will Deacon <[email protected]>
Reviewed-by: Oliver Upton <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 42dfa94 commit c60d847
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1419 | 1419 | | |
1420 | 1420 | | |
1421 | 1421 | | |
1422 | | - | |
1423 | 1422 | | |
1424 | 1423 | | |
1425 | 1424 | | |
| |||
1502 | 1501 | | |
1503 | 1502 | | |
1504 | 1503 | | |
1505 | | - | |
1506 | 1504 | | |
1507 | 1505 | | |
1508 | 1506 | | |
| |||
0 commit comments