summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-09-22 17:01:33 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2022-09-22 17:01:33 -0400
commitb4ac28a32f589d389e5391f5b546c17a484915dc (patch)
tree29ae206f111d893dbb86204a3f566555d0ca71e4 /arch
parent29250ba51bc1cbe8a87e923f76978b87c3247a8c (diff)
parent522c9a64c7049f50c7b1299741c13fac3f231cd4 (diff)
Merge tag 'kvmarm-fixes-6.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
KVM/arm64 fixes for 6.0, take #2 - Fix kmemleak usage in Protected KVM (again)
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/kvm/arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c
index 2ff0ef62abad..917086be5c6b 100644
--- a/arch/arm64/kvm/arm.c
+++ b/arch/arm64/kvm/arm.c
@@ -2114,7 +2114,7 @@ static int finalize_hyp_mode(void)
* at, which would end badly once inaccessible.
*/
kmemleak_free_part(__hyp_bss_start, __hyp_bss_end - __hyp_bss_start);
- kmemleak_free_part(__va(hyp_mem_base), hyp_mem_size);
+ kmemleak_free_part_phys(hyp_mem_base, hyp_mem_size);
return pkvm_drop_host_privileges();
}