]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Fix mmap2 for handling differing PAGE_SIZEs.
authorToshinobu Sugioka <sugioka@itonet.co.jp>
Mon, 20 Apr 2009 22:34:53 +0000 (07:34 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 20 Apr 2009 22:34:53 +0000 (07:34 +0900)
commitcaf020df44bf6fe1c6ece5a9d8fae742a8e24af7
tree83f774f5b0f979d53b909638efe56d8dc2e05ea0
parente1002041809231c5d96a3fe5f5b3870070da82f0
sh: Fix mmap2 for handling differing PAGE_SIZEs.

mmap2 uses a fixed page shift of 12, regardless of the PAGE_SIZE setting.
Fix up the mmap2 code to add some sanity checks on the mapping, and to
update pgoff accordingly.

Error handling bits based on f3742971c1f783f0683d187be5ef5fe53e492e57
("frv: fix mmap2 error handling").

Signed-off-by: Toshinobu Sugioka <sugioka@itonet.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/sys_sh.c