diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-08 03:26:54 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-02-14 00:22:09 -0500 |
commit | 0906185071bff4b285aed6e89ed607d6f6bf8910 (patch) | |
tree | 422855ed7ea07fc3b170346b313a815c5b01f28e | |
parent | c1a34e4c547a7e6185078bf5e65a3ca0e1081df2 (diff) |
sh: fix ptrace copy_from/to_user() compilation error
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>
-rw-r--r-- | arch/sh/kernel/ptrace_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c index ce0664a58b49..fddb547f3c2b 100644 --- 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) | |||
220 | dp = ((unsigned long) child) + THREAD_SIZE - | 220 | dp = ((unsigned long) child) + THREAD_SIZE - |
221 | sizeof(struct pt_dspregs); | 221 | sizeof(struct pt_dspregs); |
222 | if (*((int *) (dp - 4)) == SR_FD) { | 222 | if (*((int *) (dp - 4)) == SR_FD) { |
223 | copy_to_user(addr, (void *) dp, | 223 | copy_to_user((void *)addr, (void *) dp, |
224 | sizeof(struct pt_dspregs)); | 224 | sizeof(struct pt_dspregs)); |
225 | ret = 0; | 225 | ret = 0; |
226 | } | 226 | } |
@@ -234,7 +234,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
234 | dp = ((unsigned long) child) + THREAD_SIZE - | 234 | dp = ((unsigned long) child) + THREAD_SIZE - |
235 | sizeof(struct pt_dspregs); | 235 | sizeof(struct pt_dspregs); |
236 | if (*((int *) (dp - 4)) == SR_FD) { | 236 | if (*((int *) (dp - 4)) == SR_FD) { |
237 | copy_from_user((void *) dp, addr, | 237 | copy_from_user((void *) dp, (void *)addr, |
238 | sizeof(struct pt_dspregs)); | 238 | sizeof(struct pt_dspregs)); |
239 | ret = 0; | 239 | ret = 0; |
240 | } | 240 | } |