projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'arm64-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas...
[firefly-linux-kernel-4.4.55.git]
/
arch
/
arm64
/
include
/
asm
/
pgtable.h
diff --git
a/arch/arm64/include/asm/pgtable.h
b/arch/arm64/include/asm/pgtable.h
index 14aba2db6776d099935c76e95bd4797f3a707376..64b13394950266308093f67bce6ddb7e55391428 100644
(file)
--- a/
arch/arm64/include/asm/pgtable.h
+++ b/
arch/arm64/include/asm/pgtable.h
@@
-159,6
+159,8
@@
static inline void set_pte_at(struct mm_struct *mm, unsigned long addr,
{
if (pte_present_exec_user(pte))
__sync_icache_dcache(pte, addr);
+ if (!pte_dirty(pte))
+ pte = pte_wrprotect(pte);
set_pte(ptep, pte);
}