From: Catalin Marinas Date: Mon, 18 Feb 2013 16:51:20 +0000 (+0100) Subject: ARM: 7654/1: Preserve L_PTE_VALID in pte_modify() X-Git-Tag: v3.9-rc1~8^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69dde4c52dbac2891b49ff9723d9c84efc5baf6f;p=pandora-kernel.git ARM: 7654/1: Preserve L_PTE_VALID in pte_modify() Following commit 26ffd0d4 (ARM: mm: introduce present, faulting entries for PAGE_NONE), if a page has been mapped as PROT_NONE, the L_PTE_VALID bit is cleared by the set_pte_ext() code. With LPAE the software and hardware pte share the same location and subsequent modifications of pte range (change_protection()) will leave the L_PTE_VALID bit cleared. This patch adds the L_PTE_VALID bit to the newprot mask in pte_modify(). Signed-off-by: Catalin Marinas Reported-by: Subash Patel Tested-by: Subash Patel Acked-by: Will Deacon Cc: # 3.8.x Signed-off-by: Russell King --- Reading git-diff-tree failed