Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e372e712
Commit
e372e712
authored
Aug 01, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPARC64: do_munmap acct arg disappears
parent
73206220
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
arch/sparc64/kernel/sys_sparc.c
arch/sparc64/kernel/sys_sparc.c
+1
-1
arch/sparc64/kernel/sys_sunos32.c
arch/sparc64/kernel/sys_sunos32.c
+1
-1
No files found.
arch/sparc64/kernel/sys_sparc.c
View file @
e372e712
...
...
@@ -319,7 +319,7 @@ asmlinkage long sys64_munmap(unsigned long addr, size_t len)
(
addr
<
PAGE_OFFSET
&&
addr
+
len
>
-
PAGE_OFFSET
))
return
-
EINVAL
;
down_write
(
&
current
->
mm
->
mmap_sem
);
ret
=
do_munmap
(
current
->
mm
,
addr
,
len
,
1
);
ret
=
do_munmap
(
current
->
mm
,
addr
,
len
);
up_write
(
&
current
->
mm
->
mmap_sem
);
return
ret
;
}
...
...
arch/sparc64/kernel/sys_sunos32.c
View file @
e372e712
...
...
@@ -139,7 +139,7 @@ asmlinkage int sunos_brk(u32 baddr)
/* Always allow shrinking brk. */
if
(
brk
<=
current
->
mm
->
brk
)
{
current
->
mm
->
brk
=
brk
;
do_munmap
(
current
->
mm
,
newbrk
,
oldbrk
-
newbrk
,
1
);
do_munmap
(
current
->
mm
,
newbrk
,
oldbrk
-
newbrk
);
goto
out
;
}
/* Check against rlimit and stack.. */
...
...
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