Skip to content

Commit aaaf41a

Browse files
Tao Cuigregkh
authored andcommitted
LoongArch: KVM: Use kvm_set_pte() in kvm_flush_pte()
commit 81e1877 upstream. kvm_flush_pte() is the only caller that directly assigns *pte instead of using the kvm_set_pte() wrapper. Use the wrapper for consistency with the rest of the file. No functional change intended. Cc: stable@vger.kernel.org Reviewed-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Tao Cui <cuitao@kylinos.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3d44ed6 commit aaaf41a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/loongarch/kvm/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int kvm_flush_pte(kvm_pte_t *pte, phys_addr_t addr, kvm_ptw_ctx *ctx)
9595
else
9696
kvm->stat.pages--;
9797

98-
*pte = ctx->invalid_entry;
98+
kvm_set_pte(pte, ctx->invalid_entry);
9999

100100
return 1;
101101
}

0 commit comments

Comments
 (0)