diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/mm/pageattr_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/pageattr_64.c b/arch/x86/mm/pageattr_64.c index 5a03fb5fd530..34acbcd62eb8 100644 --- a/arch/x86/mm/pageattr_64.c +++ b/arch/x86/mm/pageattr_64.c | |||
@@ -86,7 +86,7 @@ repeat: | |||
86 | prot = canon_pgprot(prot); | 86 | prot = canon_pgprot(prot); |
87 | 87 | ||
88 | if (level == 4) { | 88 | if (level == 4) { |
89 | set_pte(kpte, mk_pte(page, prot)); | 89 | set_pte_atomic(kpte, mk_pte(page, prot)); |
90 | } else { | 90 | } else { |
91 | /* | 91 | /* |
92 | * split_large_page will take the reference for this | 92 | * split_large_page will take the reference for this |
@@ -99,7 +99,7 @@ repeat: | |||
99 | if (!split) | 99 | if (!split) |
100 | return -ENOMEM; | 100 | return -ENOMEM; |
101 | pgprot_val(ref_prot2) &= ~_PAGE_NX; | 101 | pgprot_val(ref_prot2) &= ~_PAGE_NX; |
102 | set_pte(kpte, mk_pte(split, ref_prot2)); | 102 | set_pte_atomic(kpte, mk_pte(split, ref_prot2)); |
103 | goto repeat; | 103 | goto repeat; |
104 | } | 104 | } |
105 | 105 | ||