Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidKernelMSM
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidKernelMSM
Commits
aa656073
Commit
aa656073
authored
Dec 11, 2009
by
Al Viro
Browse files
Options
Downloads
Patches
Plain Diff
Add missing alignment check in arch/score sys_mmap()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e77414e0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/score/kernel/sys_score.c
+4
-3
4 additions, 3 deletions
arch/score/kernel/sys_score.c
with
4 additions
and
3 deletions
arch/score/kernel/sys_score.c
+
4
−
3
View file @
aa656073
...
@@ -41,10 +41,11 @@ sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
...
@@ -41,10 +41,11 @@ sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
asmlinkage
long
asmlinkage
long
sys_mmap
(
unsigned
long
addr
,
unsigned
long
len
,
unsigned
long
prot
,
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? */
if
(
unlikely
(
offset
&
~
PAGE_MASK
))
return
sys_mmap_pgoff
(
addr
,
len
,
prot
,
flags
,
fd
,
pgoff
>>
PAGE_SHIFT
);
return
-
EINVAL
;
return
sys_mmap_pgoff
(
addr
,
len
,
prot
,
flags
,
fd
,
offset
>>
PAGE_SHIFT
);
}
}
asmlinkage
long
asmlinkage
long
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment