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
aa656073
Commit
aa656073
authored
Dec 11, 2009
by
Al Viro
Browse files
Add missing alignment check in arch/score sys_mmap()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e77414e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
arch/score/kernel/sys_score.c
View file @
aa656073
...
...
@@ -41,10 +41,11 @@ sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
asmlinkage
long
sys_mmap
(
unsigned
long
addr
,
unsigned
long
len
,
unsigned
long
prot
,
unsigned
long
flags
,
unsigned
long
fd
,
off_t
pg
off
)
unsigned
long
flags
,
unsigned
long
fd
,
off_t
off
set
)
{
/* where's the alignment check? */
return
sys_mmap_pgoff
(
addr
,
len
,
prot
,
flags
,
fd
,
pgoff
>>
PAGE_SHIFT
);
if
(
unlikely
(
offset
&
~
PAGE_MASK
))
return
-
EINVAL
;
return
sys_mmap_pgoff
(
addr
,
len
,
prot
,
flags
,
fd
,
offset
>>
PAGE_SHIFT
);
}
asmlinkage
long
...
...
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