]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nommu: get_user_pages(): pin last page on non-page-aligned start
authorSteven J. Magnani <steve@digidescorp.com>
Fri, 5 Mar 2010 21:42:24 +0000 (13:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:27 +0000 (11:26 -0800)
commitc08c6e1f54c85fc299cf9f88cf330d6dd28a9a1d
treeb03659b467641e445b9f4a96423fd20ff806b7fb
parentf047f4f3792344901e1ea18a180515d7d5349e02
nommu: get_user_pages(): pin last page on non-page-aligned start

The noMMU version of get_user_pages() fails to pin the last page when the
start address isn't page-aligned.  The patch fixes this in a way that
makes find_extend_vma() congruent to its MMU cousin.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/nommu.c