diff options
author | Andreas Schwab <schwab@suse.de> | 2015-03-16 16:32:22 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-03-19 10:43:51 +0000 |
commit | 18ccb0cab49ef7868eaf9504f257e1a84683dbbd (patch) | |
tree | 54d6aecbdfc68fb7a40d39cb09cee3b11ca87158 /arch/arm64/kernel/sys32.c | |
parent | ad08fd494bf00c03ae372e0bbd9cefa37bf608d6 (diff) |
arm64: fix implementation of mmap2 compat syscall
The arm mmap2 syscall takes the offset in units of 4K, thus with 64K pages
the offset needs to be scaled to units of pages.
Signed-off-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
[will: removed redundant lr parameter, localised PAGE_SHIFT #if check]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/sys32.c')
-rw-r--r-- | arch/arm64/kernel/sys32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/sys32.c b/arch/arm64/kernel/sys32.c index 2d5ab3c90b82..a40b1343b819 100644 --- a/arch/arm64/kernel/sys32.c +++ b/arch/arm64/kernel/sys32.c @@ -37,6 +37,7 @@ asmlinkage long compat_sys_readahead_wrapper(void); asmlinkage long compat_sys_fadvise64_64_wrapper(void); asmlinkage long compat_sys_sync_file_range2_wrapper(void); asmlinkage long compat_sys_fallocate_wrapper(void); +asmlinkage long compat_sys_mmap2_wrapper(void); #undef __SYSCALL #define __SYSCALL(nr, sym) [nr] = sym, |