diff options
author | 2011-07-25 17:12:09 -0700 | |
---|---|---|
committer | 2011-07-25 20:57:08 -0700 | |
commit | 4b6ddbf7ed4ef2f40e0a27418146eedaa68953c6 (patch) | |
tree | 27ab200848514a467f656281073b9c0f86cb7dcc /mm/hugetlb.c | |
parent | mm: swap-token: add a comment for priority aging (diff) | |
download | wireguard-linux-4b6ddbf7ed4ef2f40e0a27418146eedaa68953c6.tar.xz wireguard-linux-4b6ddbf7ed4ef2f40e0a27418146eedaa68953c6.zip |
pagewalk: fix walk_page_range() don't check find_vma() result properly
The doc of find_vma() says,
/* Look up the first VMA which satisfies addr < vm_end, NULL if none. */
struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
{
(snip)
Thus, caller should confirm whether the returned vma matches a desired one.
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Hiroyuki Kamezawa <kamezawa.hiroyuki@gmail.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions