Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174853
b: refs/heads/master
c: 564b3bf
h: refs/heads/master
i:
  174851: 894622e
v: v3
  • Loading branch information
Al Viro committed Dec 11, 2009
1 parent a185601 commit 29f0806
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 570dcf2c15463842e384eb597a87c1e39bead99b
refs/heads/master: 564b3bffc619dcbdd160de597b0547a7017ea010
5 changes: 5 additions & 0 deletions trunk/arch/mn10300/include/asm/mman.h
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
#include <asm-generic/mman.h>

#define MIN_MAP_ADDR PAGE_SIZE /* minimum fixed mmap address */

#define arch_mmap_check(addr, len, flags) \
(((flags) & MAP_FIXED && (addr) < MIN_MAP_ADDR) ? -EINVAL : 0)
5 changes: 0 additions & 5 deletions trunk/arch/mn10300/kernel/sys_mn10300.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

#include <asm/uaccess.h>

#define MIN_MAP_ADDR PAGE_SIZE /* minimum fixed mmap address */

/*
* memory mapping syscall
*/
Expand All @@ -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);
Expand Down

0 comments on commit 29f0806

Please sign in to comment.