aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--virt/kvm/arm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c
index 909a1a793b31..704e35f312a4 100644
--- a/virt/kvm/arm/mmu.c
+++ b/virt/kvm/arm/mmu.c
@@ -837,7 +837,7 @@ void kvm_free_stage2_pgd(struct kvm *kvm)
837 spin_lock(&kvm->mmu_lock); 837 spin_lock(&kvm->mmu_lock);
838 if (kvm->arch.pgd) { 838 if (kvm->arch.pgd) {
839 unmap_stage2_range(kvm, 0, KVM_PHYS_SIZE); 839 unmap_stage2_range(kvm, 0, KVM_PHYS_SIZE);
840 pgd = kvm->arch.pgd; 840 pgd = READ_ONCE(kvm->arch.pgd);
841 kvm->arch.pgd = NULL; 841 kvm->arch.pgd = NULL;
842 } 842 }
843 spin_unlock(&kvm->mmu_lock); 843 spin_unlock(&kvm->mmu_lock);