summaryrefslogtreecommitdiff
path: root/arch/loongarch/mm/pgtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/mm/pgtable.c')
-rw-r--r--arch/loongarch/mm/pgtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/mm/pgtable.c b/arch/loongarch/mm/pgtable.c
index bda018150000..eb6a29b491a7 100644
--- a/arch/loongarch/mm/pgtable.c
+++ b/arch/loongarch/mm/pgtable.c
@@ -128,7 +128,7 @@ pmd_t mk_pmd(struct page *page, pgprot_t prot)
void set_pmd_at(struct mm_struct *mm, unsigned long addr,
pmd_t *pmdp, pmd_t pmd)
{
- *pmdp = pmd;
+ WRITE_ONCE(*pmdp, pmd);
flush_tlb_all();
}