Messages in this thread Patch in this message | | | From | Namhyung Kim <> | Subject | [PATCH v2 17/24] ptrace: cleanup arch_ptrace() on parisc | Date | Fri, 3 Sep 2010 00:46:24 +0900 |
| |
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> --- 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 03920db..2905b1f 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, addr >= sizeof(struct pt_regs)) break; tmp = *(unsigned long *) ((char *) task_regs(child) + addr); - ret = put_user(tmp, (unsigned long *) data); + ret = put_user(tmp, (unsigned long __user *) data); break; /* Write the word at location addr in the USER area. This will need -- 1.7.2.2
| |