OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1a34e4
)
sh: fix ptrace copy_from/to_user() compilation error
author
Magnus Damm
<magnus.damm@gmail.com>
Fri, 8 Feb 2008 08:26:54 +0000
(17:26 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Thu, 14 Feb 2008 05:22:09 +0000
(14:22 +0900)
This patch makes the 32-bit ptrace code compile again.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/ptrace_32.c
patch
|
blob
|
history
diff --git
a/arch/sh/kernel/ptrace_32.c
b/arch/sh/kernel/ptrace_32.c
index
ce0664a
..
fddb547
100644
(file)
--- a/
arch/sh/kernel/ptrace_32.c
+++ b/
arch/sh/kernel/ptrace_32.c
@@
-220,7
+220,7
@@
long arch_ptrace(struct task_struct *child, long request, long addr, long data)
dp = ((unsigned long) child) + THREAD_SIZE -
sizeof(struct pt_dspregs);
if (*((int *) (dp - 4)) == SR_FD) {
- copy_to_user(addr, (void *) dp,
+ copy_to_user(
(void *)
addr, (void *) dp,
sizeof(struct pt_dspregs));
ret = 0;
}
@@
-234,7
+234,7
@@
long arch_ptrace(struct task_struct *child, long request, long addr, long data)
dp = ((unsigned long) child) + THREAD_SIZE -
sizeof(struct pt_dspregs);
if (*((int *) (dp - 4)) == SR_FD) {
- copy_from_user((void *) dp, addr,
+ copy_from_user((void *) dp,
(void *)
addr,
sizeof(struct pt_dspregs));
ret = 0;
}