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
11438834
Commit
11438834
authored
Feb 06, 2005
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6
parents
edffd6d0
fe9b081b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
arch/sparc64/lib/user_fixup.c
arch/sparc64/lib/user_fixup.c
+6
-3
No files found.
arch/sparc64/lib/user_fixup.c
View file @
11438834
...
@@ -20,11 +20,12 @@ unsigned long copy_from_user_fixup(void *to, const void __user *from, unsigned l
...
@@ -20,11 +20,12 @@ unsigned long copy_from_user_fixup(void *to, const void __user *from, unsigned l
char
*
dst
=
to
;
char
*
dst
=
to
;
const
char
__user
*
src
=
from
;
const
char
__user
*
src
=
from
;
while
(
size
--
)
{
while
(
size
)
{
if
(
__get_user
(
*
dst
,
src
))
if
(
__get_user
(
*
dst
,
src
))
break
;
break
;
dst
++
;
dst
++
;
src
++
;
src
++
;
size
--
;
}
}
if
(
size
)
if
(
size
)
...
@@ -38,11 +39,12 @@ unsigned long copy_to_user_fixup(void __user *to, const void *from, unsigned lon
...
@@ -38,11 +39,12 @@ unsigned long copy_to_user_fixup(void __user *to, const void *from, unsigned lon
char
__user
*
dst
=
to
;
char
__user
*
dst
=
to
;
const
char
*
src
=
from
;
const
char
*
src
=
from
;
while
(
size
--
)
{
while
(
size
)
{
if
(
__put_user
(
*
src
,
dst
))
if
(
__put_user
(
*
src
,
dst
))
break
;
break
;
dst
++
;
dst
++
;
src
++
;
src
++
;
size
--
;
}
}
return
size
;
return
size
;
...
@@ -53,7 +55,7 @@ unsigned long copy_in_user_fixup(void __user *to, void __user *from, unsigned lo
...
@@ -53,7 +55,7 @@ unsigned long copy_in_user_fixup(void __user *to, void __user *from, unsigned lo
char
__user
*
dst
=
to
;
char
__user
*
dst
=
to
;
char
__user
*
src
=
from
;
char
__user
*
src
=
from
;
while
(
size
--
)
{
while
(
size
)
{
char
tmp
;
char
tmp
;
if
(
__get_user
(
tmp
,
src
))
if
(
__get_user
(
tmp
,
src
))
...
@@ -62,6 +64,7 @@ unsigned long copy_in_user_fixup(void __user *to, void __user *from, unsigned lo
...
@@ -62,6 +64,7 @@ unsigned long copy_in_user_fixup(void __user *to, void __user *from, unsigned lo
break
;
break
;
dst
++
;
dst
++
;
src
++
;
src
++
;
size
--
;
}
}
return
size
;
return
size
;
...
...
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