From: Toshinobu Sugioka Date: Mon, 20 Apr 2009 22:34:53 +0000 (+0900) Subject: sh: Fix mmap2 for handling differing PAGE_SIZEs. X-Git-Tag: v2.6.30-rc3~34^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c31813f31cd4403b46802866949a95a6e8fa584;p=pandora-kernel.git 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 4280e3126f641898f0ed1a931645373d3489e2a6 ("frv: fix mmap2 error handling"). Signed-off-by: Toshinobu Sugioka Signed-off-by: Paul Mundt --- Reading git-diff-tree failed