diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-03-06 13:37:41 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-03-06 13:37:41 -0500 |
commit | 0ddeeca25ce33686262459e2387f57bd09574e47 (patch) | |
tree | cd33798b51e358260e2089a97e9e3e3de6d8e02b /arch/blackfin/kernel/ptrace.c | |
parent | 1307a65130963b061fbaca308b228a0f693a4495 (diff) |
[Blackfin] arch: add missing __user marking to ss_sp member of signalstack and a few userspace system functions
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/kernel/ptrace.c')
-rw-r--r-- | arch/blackfin/kernel/ptrace.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/blackfin/kernel/ptrace.c b/arch/blackfin/kernel/ptrace.c index 85caf9b711a1..b4f062c172c6 100644 --- a/arch/blackfin/kernel/ptrace.c +++ b/arch/blackfin/kernel/ptrace.c | |||
@@ -193,6 +193,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
193 | { | 193 | { |
194 | int ret; | 194 | int ret; |
195 | int add = 0; | 195 | int add = 0; |
196 | unsigned long __user *datap = (unsigned long __user *)data; | ||
196 | 197 | ||
197 | switch (request) { | 198 | switch (request) { |
198 | /* when I and D space are separate, these will need to be fixed. */ | 199 | /* when I and D space are separate, these will need to be fixed. */ |
@@ -229,7 +230,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
229 | pr_debug("ptrace: copied size %d [0x%08lx]\n", copied, tmp); | 230 | pr_debug("ptrace: copied size %d [0x%08lx]\n", copied, tmp); |
230 | if (copied != sizeof(tmp)) | 231 | if (copied != sizeof(tmp)) |
231 | break; | 232 | break; |
232 | ret = put_user(tmp, (unsigned long *)data); | 233 | ret = put_user(tmp, datap); |
233 | break; | 234 | break; |
234 | } | 235 | } |
235 | 236 | ||
@@ -263,7 +264,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
263 | } else { | 264 | } else { |
264 | tmp = get_reg(child, addr); | 265 | tmp = get_reg(child, addr); |
265 | } | 266 | } |
266 | ret = put_user(tmp, (unsigned long *)data); | 267 | ret = put_user(tmp, datap); |
267 | break; | 268 | break; |
268 | } | 269 | } |
269 | 270 | ||
@@ -389,7 +390,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
389 | { | 390 | { |
390 | 391 | ||
391 | /* Get all gp regs from the child. */ | 392 | /* Get all gp regs from the child. */ |
392 | ret = ptrace_getregs(child, (void __user *)data); | 393 | ret = ptrace_getregs(child, datap); |
393 | break; | 394 | break; |
394 | } | 395 | } |
395 | 396 | ||