Vitaly Andrianov 1a3abcf41f ARM: 7418/1: LPAE: fix access flag setup in mem_type_table
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@ti.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2012-05-17 14:48:56 +01:00
..
2012-03-28 18:30:01 +01:00
2011-12-08 10:30:40 +00:00
2012-03-28 18:30:01 +01:00
2012-04-28 11:00:16 +01:00
2012-03-29 18:02:10 -07:00
2011-02-02 21:23:26 +00:00
2012-01-26 20:07:59 +00:00
2011-12-06 11:15:25 +00:00
2012-03-28 18:30:01 +01:00