From: Namhyung Kim Date: Wed, 27 Oct 2010 22:33:59 +0000 (-0700) Subject: ptrace: cleanup arch_ptrace() on parisc X-Git-Tag: v2.6.37-rc1~85^2~71 X-Git-Url: https://bbs.cooldavid.org/git/?p=net-next-2.6.git;a=commitdiff_plain;h=1cb4953c608d01d8ea522e2cf379e5e90f06d7a3 ptrace: cleanup arch_ptrace() on parisc Add missing __user markup on the argument of put_user(). Signed-off-by: Namhyung Kim Cc: Kyle McMartin Cc: Helge Deller Cc: "James E.J. Bottomley" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptrace.c index 03920db4af4..2905b1f52d3 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