Skip to content
Commit 8c31813f authored by Toshinobu Sugioka's avatar Toshinobu Sugioka Committed by Paul Mundt
Browse files

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 4280e312
("frv: fix mmap2 error handling").

Signed-off-by: default avatarToshinobu Sugioka <sugioka@itonet.co.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent aefe6475
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment