arch/mips/loongson/common/mem.c: fix phys_mem_access_prot() check
PATCH 1/1 arch/mips/loongson/common/mem.c: fix phys_mem_access_prot() check
The check used to determine if uncached accelerated should be used or not is wrong. The parenthesis are misplaced and making the test fail.
Signed-off-by Arnaud Patard <[email protected]>
---
arch/mips/loongson/common/mem.c +1 -1
@@ -75,7 +75,7 @@ pgprot_t phys_mem_access_prot(struct filunsigned long end = offset + size;if (__uncached_access (file, offset)) { -if (((uca_start && offset) >= uca_start) && +if (uca_start && (offset >= uca_start) && (end <= uca_end)) return __pgprot((pgprot_val(vma_prot) & ~_CACHE_MASK) |
Ralf Baechle
AppliedQuoted 4 lines · Arnaud Patard
The check used to determine if uncached accelerated should be used or not is wrong. The parenthesis are misplaced and making the test fail.
Signed-off-by Arnaud Patard <[email protected]>
Thanks, applied.
Ralf