projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm/readahead.c: inline ra_submit
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
mm
/
vmacache.c
diff --git
a/mm/vmacache.c
b/mm/vmacache.c
index
d4224b3
..
1037a3b
100644
(file)
--- a/
mm/vmacache.c
+++ b/
mm/vmacache.c
@@
-81,10
+81,12
@@
struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr)
for (i = 0; i < VMACACHE_SIZE; i++) {
struct vm_area_struct *vma = current->vmacache[i];
for (i = 0; i < VMACACHE_SIZE; i++) {
struct vm_area_struct *vma = current->vmacache[i];
- if (vma && vma->vm_start <= addr && vma->vm_end > addr) {
- BUG_ON(vma->vm_mm != mm);
+ if (!vma)
+ continue;
+ if (WARN_ON_ONCE(vma->vm_mm != mm))
+ break;
+ if (vma->vm_start <= addr && vma->vm_end > addr)
return vma;
return vma;
- }
}
return NULL;
}
return NULL;