Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
ipipe
Commits
564b3bff
Commit
564b3bff
authored
Nov 30, 2009
by
Al Viro
Browse files
arch_mmap_check() on mn10300
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
570dcf2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
arch/mn10300/include/asm/mman.h
View file @
564b3bff
#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)
arch/mn10300/kernel/sys_mn10300.c
View file @
564b3bff
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment