git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: prevent mmap_cache race in find_vma()
[pandora-kernel.git]
/
mm
/
nommu.c
diff --git
a/mm/nommu.c
b/mm/nommu.c
index
f59e170
..
f0cd7ab
100644
(file)
--- a/
mm/nommu.c
+++ b/
mm/nommu.c
@@
-807,7
+807,7
@@
struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
struct vm_area_struct *vma;
/* check the cache first */
- vma =
mm->mmap_cache
;
+ vma =
ACCESS_ONCE(mm->mmap_cache)
;
if (vma && vma->vm_start <= addr && vma->vm_end > addr)
return vma;