diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-27 18:33:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 21:03:11 -0400 |
commit | 1cb4953c608d01d8ea522e2cf379e5e90f06d7a3 (patch) | |
tree | 8d75c9aa2cc2d4a94b184f9e7aeb62fab35fbe41 /arch/parisc | |
parent | 261bb92054b9e0835c176a27967dd9eb326d010c (diff) |
ptrace: cleanup arch_ptrace() on parisc
Add missing __user markup on the argument of put_user().
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptrace.c index 03920db4af45..2905b1f52d30 100644 --- a/arch/parisc/kernel/ptrace.c +++ b/arch/parisc/kernel/ptrace.c | |||
@@ -125,7 +125,7 @@ long arch_ptrace(struct task_struct *child, long request, | |||
125 | addr >= sizeof(struct pt_regs)) | 125 | addr >= sizeof(struct pt_regs)) |
126 | break; | 126 | break; |
127 | tmp = *(unsigned long *) ((char *) task_regs(child) + addr); | 127 | tmp = *(unsigned long *) ((char *) task_regs(child) + addr); |
128 | ret = put_user(tmp, (unsigned long *) data); | 128 | ret = put_user(tmp, (unsigned long __user *) data); |
129 | break; | 129 | break; |
130 | 130 | ||
131 | /* Write the word at location addr in the USER area. This will need | 131 | /* Write the word at location addr in the USER area. This will need |