diff options
| author | Vitaly Andrianov <[email protected]> | 2012-05-15 14:01:16 +0000 |
|---|---|---|
| committer | Russell King <[email protected]> | 2012-05-17 13:48:56 +0000 |
| commit | 1a3abcf41f13666d4ed241c8cc7f48bd38e7b543 (patch) | |
| tree | 4d1cb4bc3b0e65149a1ab2d1ad4a51a4bdd2035c /tools/perf/util/trace-event-scripting.c | |
| parent | ARM: prevent VM_GROWSDOWN mmaps extending below FIRST_USER_ADDRESS (diff) | |
| download | kernel-1a3abcf41f13666d4ed241c8cc7f48bd38e7b543.tar.gz kernel-1a3abcf41f13666d4ed241c8cc7f48bd38e7b543.zip | |
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 <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
