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
aa656073
Commit
aa656073
authored
Dec 11, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
arch/score/kernel/sys_score.c
arch/score/kernel/sys_score.c
+4
-3
No files found.
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
pgoff
)
unsigned
long
flags
,
unsigned
long
fd
,
off_t
offset
)
{
/* 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
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