]> err.no Git - linux-2.6/commitdiff
[PATCH] Missing __user in pointer referenced within copy_from_user
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Tue, 20 Feb 2007 21:58:12 +0000 (13:58 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 21 Feb 2007 01:10:15 +0000 (17:10 -0800)
Pointers to user data should be marked with a __user hint.  This one is
missing.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c

index 4f5745af8c193809f37d9f2cfa78be383d42ef9c..01f7769da8e67bf7f7091f6ece8ca09b060b859f 100644 (file)
@@ -581,7 +581,7 @@ out_no_task:
 
 #ifndef mem_write
 /* This is a security hazard */
-static ssize_t mem_write(struct file * file, const char buf,
+static ssize_t mem_write(struct file * file, const char __user *buf,
                         size_t count, loff_t *ppos)
 {
        int copied;