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
2c6a1016
Commit
2c6a1016
authored
Dec 03, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch do_brk() to get_unmapped_area()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
9206de95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
mm/mmap.c
mm/mmap.c
+2
-8
No files found.
mm/mmap.c
View file @
2c6a1016
...
...
@@ -1985,20 +1985,14 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
if
(
!
len
)
return
addr
;
if
((
addr
+
len
)
>
TASK_SIZE
||
(
addr
+
len
)
<
addr
)
return
-
EINVAL
;
if
(
is_hugepage_only_range
(
mm
,
addr
,
len
))
return
-
EINVAL
;
error
=
security_file_mmap
(
NULL
,
0
,
0
,
0
,
addr
,
1
);
if
(
error
)
return
error
;
flags
=
VM_DATA_DEFAULT_FLAGS
|
VM_ACCOUNT
|
mm
->
def_flags
;
error
=
arch_mmap_check
(
addr
,
len
,
flags
);
if
(
error
)
error
=
get_unmapped_area
(
NULL
,
addr
,
len
,
0
,
MAP_FIXED
);
if
(
error
&
~
PAGE_MASK
)
return
error
;
/*
...
...
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