summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorArd Biesheuvel2015-11-09 09:55:45 +0100
committerCatalin Marinas2015-11-09 15:23:16 +0100
commitb219545e9646e9d4089a74029c82ae59645e12ae (patch)
treea838127df77d75c34c92f9cf39d6b6724f19b298 /arch/arm64
parentarm64: bpf: fix mod-by-zero case (diff)
downloadkernel-qcow2-linux-b219545e9646e9d4089a74029c82ae59645e12ae.tar.gz
kernel-qcow2-linux-b219545e9646e9d4089a74029c82ae59645e12ae.tar.xz
kernel-qcow2-linux-b219545e9646e9d4089a74029c82ae59645e12ae.zip
arm64: fix STRICT_MM_TYPECHECKS issue in PTE_CONT manipulation
The new page table code that manipulates the PTE_CONT flags does so in a way that is inconsistent with STRICT_MM_TYPECHECKS. Fix it by using the correct combination of __pgprot() and pgprot_val(). Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/mm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index c2fa6b56613c..2784f052df5e 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -146,7 +146,7 @@ static void alloc_init_pte(pmd_t *pmd, unsigned long addr,
if (((addr | next | phys) & ~CONT_MASK) == 0) {
/* a block of CONT_PTES */
__populate_init_pte(pte, addr, next, phys,
- prot | __pgprot(PTE_CONT));
+ __pgprot(pgprot_val(prot) | PTE_CONT));
} else {
/*
* If the range being split is already inside of a