3f07b10a8a4640802b62000e4efde5cdf1c26a88 Issues on mm/vmacache.c files . mm/vmacache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/vmacache.c b/mm/vmacache.c index fd09dc9..3590931 100644 --- a/mm/vmacache.c +++ b/mm/vmacache.c @@ -54,7 +54,7 @@ void vmacache_flush_all(struct mm_struct *mm) */ static inline bool vmacache_valid_mm(struct mm_struct *mm) { - return current->mm == mm && !(current->flags & PF_KTHREAD); + return (current->mm == mm) && !(current->flags & PF_KTHREAD); } void vmacache_update(unsigned long addr, struct vm_area_struct *newvma) @@ -99,7 +99,7 @@ struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr) continue; if (WARN_ON_ONCE(vma->vm_mm != mm)) break; - if (vma->vm_start <= addr && vma->vm_end > addr) { + if ((vma->vm_start <= addr) && (vma->vm_end > addr)) { count_vm_vmacache_event(VMACACHE_FIND_HITS); return vma; } @@ -123,7 +123,7 @@ struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm, for (i = 0; i < VMACACHE_SIZE; i++) { struct vm_area_struct *vma = current->vmacache[i]; - if (vma && vma->vm_start == start && vma->vm_end == end) { + if (vma && (vma->vm_start == start) && (vma->vm_end == end)) { count_vm_vmacache_event(VMACACHE_FIND_HITS); return vma; } -- 2.7.4