]> git.hungrycats.org Git - linux/commitdiff
Add __user annotation to PR_SET_NAME
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 27 Sep 2004 09:37:15 +0000 (02:37 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 27 Sep 2004 09:37:15 +0000 (02:37 -0700)
kernel/sys.c

index 59def31398749675da116154370bdf6c767936d1..571bba8c8989daf522b8744763092055a9b63a4a 100644 (file)
@@ -1734,7 +1734,7 @@ asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3,
                        unsigned char ncomm[sizeof(me->comm)];
 
                        ncomm[sizeof(me->comm)-1] = 0;
-                       if (strncpy_from_user(ncomm, (char *)arg2,
+                       if (strncpy_from_user(ncomm, (char __user *)arg2,
                                                sizeof(me->comm)-1) < 0)
                                return -EFAULT;
                        set_task_comm(me, ncomm);