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
ae1fed0d
Commit
ae1fed0d
authored
Jun 01, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Fix clear_user, from ppc32
parent
96ac7f8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
include/asm-ppc64/uaccess.h
include/asm-ppc64/uaccess.h
+5
-1
No files found.
include/asm-ppc64/uaccess.h
View file @
ae1fed0d
...
...
@@ -240,7 +240,11 @@ clear_user(void *addr, unsigned long size)
{
if
(
access_ok
(
VERIFY_WRITE
,
addr
,
size
))
return
__clear_user
(
addr
,
size
);
return
size
?
-
EFAULT
:
0
;
if
((
unsigned
long
)
addr
<
TASK_SIZE
)
{
unsigned
long
over
=
(
unsigned
long
)
addr
+
size
-
TASK_SIZE
;
return
__clear_user
(
addr
,
size
-
over
)
+
over
;
}
return
size
;
}
extern
int
__strncpy_from_user
(
char
*
dst
,
const
char
*
src
,
long
count
);
...
...
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