* [PATCH] sh: fix ptrace copy_from/to_user() compilation error
@ 2008-02-08 8:26 Magnus Damm
0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2008-02-08 8:26 UTC (permalink / raw)
To: linux-sh
This patch makes the 32-bit ptrace code compile again.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
---
arch/sh/kernel/ptrace_32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- 0001/arch/sh/kernel/ptrace_32.c
+++ work/arch/sh/kernel/ptrace_32.c 2008-02-08 14:57:44.000000000 +0900
@@ -220,7 +220,7 @@ long arch_ptrace(struct task_struct *chi
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 *chi
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-08 8:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-08 8:26 [PATCH] sh: fix ptrace copy_from/to_user() compilation error Magnus Damm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.