diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-12-01 01:00:51 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-12-11 14:34:10 +0300 |
commit | 564b3bffc619dcbdd160de597b0547a7017ea010 (patch) | |
tree | b6980ff0a3d74a7834fd6332a3c85d2c8d6ac81b /arch/mn10300/kernel | |
parent | 570dcf2c15463842e384eb597a87c1e39bead99b (diff) | |
download | linux-564b3bffc619dcbdd160de597b0547a7017ea010.tar.xz |
arch_mmap_check() on mn10300
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/mn10300/kernel')
-rw-r--r-- | arch/mn10300/kernel/sys_mn10300.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/mn10300/kernel/sys_mn10300.c b/arch/mn10300/kernel/sys_mn10300.c index 8ca5af00334c..ec4100dfcb7d 100644 --- a/arch/mn10300/kernel/sys_mn10300.c +++ b/arch/mn10300/kernel/sys_mn10300.c @@ -23,8 +23,6 @@ #include <asm/uaccess.h> -#define MIN_MAP_ADDR PAGE_SIZE /* minimum fixed mmap address */ - /* * memory mapping syscall */ @@ -37,9 +35,6 @@ asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE); - if (flags & MAP_FIXED && addr < MIN_MAP_ADDR) - goto out; - error = -EBADF; if (!(flags & MAP_ANONYMOUS)) { file = fget(fd); |