aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v10/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/cris/arch-v10/kernel/ptrace.c')
-rw-r--r--arch/cris/arch-v10/kernel/ptrace.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/cris/arch-v10/kernel/ptrace.c b/arch/cris/arch-v10/kernel/ptrace.c
index e70c804e9377..d411e024e05f 100644
--- a/arch/cris/arch-v10/kernel/ptrace.c
+++ b/arch/cris/arch-v10/kernel/ptrace.c
@@ -76,7 +76,8 @@ ptrace_disable(struct task_struct *child)
76 * (in user space) where the result of the ptrace call is written (instead of 76 * (in user space) where the result of the ptrace call is written (instead of
77 * being returned). 77 * being returned).
78 */ 78 */
79long arch_ptrace(struct task_struct *child, long request, long addr, long data) 79long arch_ptrace(struct task_struct *child, long request,
80 unsigned long addr, unsigned long data)
80{ 81{
81 int ret; 82 int ret;
82 unsigned long __user *datap = (unsigned long __user *)data; 83 unsigned long __user *datap = (unsigned long __user *)data;
@@ -141,7 +142,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
141 break; 142 break;
142 } 143 }
143 144
144 data += sizeof(long); 145 data += sizeof(unsigned long);
145 } 146 }
146 147
147 break; 148 break;
@@ -165,7 +166,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
165 } 166 }
166 167
167 put_reg(child, i, tmp); 168 put_reg(child, i, tmp);
168 data += sizeof(long); 169 data += sizeof(unsigned long);
169 } 170 }
170 171
171 break; 172 break;