[PATCH] ARM: LPAE: fix access flag setup in mem_type_table

Russell King - ARM Linux linux at arm.linux.org.uk
Tue May 15 08:22:16 EDT 2012


On Mon, May 14, 2012 at 01:54:57PM -0400, Vitaly Andrianov wrote:
> A zero value for prot_sect in the memory types table implies that
> section mappings should never be created for the memory type in question.
> This is checked for in alloc_init_section().
> 
> With LPAE, we set a bit to mask access flag faults for kernel mappings.
> This breaks the aforementioned (!prot_sect) check in alloc_init_section().
> 
> This patch fixes this bug by first checking for a non-zero
> prot_sect before setting the PMD_SECT_AF flag.
> 
> Signed-off-by: Vitaly Andrianov <vitalya at ti.com>
> 
> Acked-by: Catalin Marinas <catalin.marinas at arm.com>

Please put this in the patch system.  No blank line is needed between
s-off-by and acked-by.



More information about the linux-arm-kernel mailing list