Skip to content

Commit 1261c63

Browse files
Catalin MarinasRussell King
authored andcommitted
[ARM PATCH] 1912/1: Wrong cache aliasing bit check
Patch from Catalin Marinas arch/arm/mm/mmap.c: arch_get_unamapped_area() checks bit 9 in the cache type register for possible cache aliasing problems. Bit 11 should be checked instead.
1 parent 5a1c770 commit 1261c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mm/mmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
4040
*/
4141
cache_type = read_cpuid(CPUID_CACHETYPE);
4242
if (cache_type != read_cpuid(CPUID_ID)) {
43-
aliasing = (cache_type | cache_type >> 12) & (1 << 9);
43+
aliasing = (cache_type | cache_type >> 12) & (1 << 11);
4444
if (aliasing)
4545
do_align = filp || flags & MAP_SHARED;
4646
}

0 commit comments

Comments
 (0)