Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
564b3bff
Commit
564b3bff
authored
Nov 30, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
arch/mn10300/include/asm/mman.h
arch/mn10300/include/asm/mman.h
+5
-0
arch/mn10300/kernel/sys_mn10300.c
arch/mn10300/kernel/sys_mn10300.c
+0
-5
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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