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
4aae9234
Commit
4aae9234
authored
May 30, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Add two more missing __user annotations for sparse.
parent
6de48267
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
arch/arm/kernel/ptrace.c
arch/arm/kernel/ptrace.c
+1
-1
arch/arm/kernel/signal.c
arch/arm/kernel/signal.c
+2
-2
No files found.
arch/arm/kernel/ptrace.c
View file @
4aae9234
...
@@ -622,7 +622,7 @@ static int do_ptrace(int request, struct task_struct *child, long addr, long dat
...
@@ -622,7 +622,7 @@ static int do_ptrace(int request, struct task_struct *child, long addr, long dat
ret
=
access_process_vm
(
child
,
addr
,
&
tmp
,
ret
=
access_process_vm
(
child
,
addr
,
&
tmp
,
sizeof
(
unsigned
long
),
0
);
sizeof
(
unsigned
long
),
0
);
if
(
ret
==
sizeof
(
unsigned
long
))
if
(
ret
==
sizeof
(
unsigned
long
))
ret
=
put_user
(
tmp
,
(
unsigned
long
*
)
data
);
ret
=
put_user
(
tmp
,
(
unsigned
long
__user
*
)
data
);
else
else
ret
=
-
EIO
;
ret
=
-
EIO
;
break
;
break
;
...
...
arch/arm/kernel/signal.c
View file @
4aae9234
...
@@ -564,10 +564,10 @@ static int do_signal(sigset_t *oldset, struct pt_regs *regs, int syscall)
...
@@ -564,10 +564,10 @@ static int do_signal(sigset_t *oldset, struct pt_regs *regs, int syscall)
regs
->
ARM_r7
=
__NR_restart_syscall
;
regs
->
ARM_r7
=
__NR_restart_syscall
;
regs
->
ARM_pc
-=
2
;
regs
->
ARM_pc
-=
2
;
}
else
{
}
else
{
u32
*
usp
;
u32
__user
*
usp
;
regs
->
ARM_sp
-=
12
;
regs
->
ARM_sp
-=
12
;
usp
=
(
u32
*
)
regs
->
ARM_sp
;
usp
=
(
u32
__user
*
)
regs
->
ARM_sp
;
put_user
(
regs
->
ARM_pc
,
&
usp
[
0
]);
put_user
(
regs
->
ARM_pc
,
&
usp
[
0
]);
/* swi __NR_restart_syscall */
/* swi __NR_restart_syscall */
...
...
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