ptrace: cleanup arch_ptrace() on parisc
authorNamhyung Kim <[email protected]>
Wed, 27 Oct 2010 22:33:59 +0000 (15:33 -0700)
committerLinus Torvalds <[email protected]>
Thu, 28 Oct 2010 01:03:11 +0000 (18:03 -0700)
Add missing __user markup on the argument of put_user().

Signed-off-by: Namhyung Kim <[email protected]>
Cc: Kyle McMartin <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/parisc/kernel/ptrace.c

index 03920db4af45335117a0dc62f27a386dbbd59e0c..2905b1f52d30b0c135b8794444473830acf2b620 100644 (file)
@@ -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