]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/pagewalk.c: fix end address calculation in walk_page_range()
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Thu, 22 May 2014 00:42:39 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:39 +0000 (10:42 +1000)
commit212ea39814ce0f5f796e7219ca18caa39fdf548e
treeb6ccc01db3e13248c74b232f0e65c937870e7ec4
parent67b5244e3232588208aba0e418c89a6d7b8a8f2b
mm/pagewalk.c: fix end address calculation in walk_page_range()

When we try to walk over inside a vma, walk_page_range() tries to walk
until vma->vm_end even if a given end is before that point.
So this patch takes the smaller one as an end address.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/pagewalk.c