aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/ptrace.c')
-rw-r--r--arch/sh/kernel/ptrace.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/sh/kernel/ptrace.c b/arch/sh/kernel/ptrace.c
index f23f949576a5..891d1d46c902 100644
--- a/arch/sh/kernel/ptrace.c
+++ b/arch/sh/kernel/ptrace.c
@@ -126,10 +126,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
126 /* when I and D space are separate, this will have to be fixed. */ 126 /* when I and D space are separate, this will have to be fixed. */
127 case PTRACE_POKETEXT: /* write the word at location addr. */ 127 case PTRACE_POKETEXT: /* write the word at location addr. */
128 case PTRACE_POKEDATA: 128 case PTRACE_POKEDATA:
129 ret = 0; 129 ret = generic_ptrace_pokedata(child, addr, data);
130 if (access_process_vm(child, addr, &data, sizeof(data), 1) == sizeof(data))
131 break;
132 ret = -EIO;
133 break; 130 break;
134 131
135 case PTRACE_POKEUSR: /* write the word at location addr in the USER area */ 132 case PTRACE_POKEUSR: /* write the word at location addr in the USER area */