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
nexedi
linux
Commits
c5827dd4
Commit
c5827dd4
authored
Jan 14, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge redhat.com:/spare/repo/netdev-2.6/forcedeth
into redhat.com:/spare/repo/net-drivers-2.5
parents
7152b580
4547e81c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mm/mremap.c
mm/mremap.c
+6
-2
No files found.
mm/mremap.c
View file @
c5827dd4
...
@@ -315,8 +315,12 @@ unsigned long do_mremap(unsigned long addr,
...
@@ -315,8 +315,12 @@ unsigned long do_mremap(unsigned long addr,
old_len
=
PAGE_ALIGN
(
old_len
);
old_len
=
PAGE_ALIGN
(
old_len
);
new_len
=
PAGE_ALIGN
(
new_len
);
new_len
=
PAGE_ALIGN
(
new_len
);
/* Don't allow the degenerate cases */
/*
if
(
!
old_len
||
!
new_len
)
* We allow a zero old-len as a special case
* for DOS-emu "duplicate shm area" thing. But
* a zero new-len is nonsensical.
*/
if
(
!
new_len
)
goto
out
;
goto
out
;
/* new_addr is only valid if MREMAP_FIXED is specified */
/* new_addr is only valid if MREMAP_FIXED is specified */
...
...
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