diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2007-02-20 22:58:12 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-21 02:10:15 +0100 |
commit | 63967fa911c2c49376d0b1e171ef98e1b2b075af (patch) | |
tree | 28a10b745f81c32fc67ab8a23b31bc83f088abb2 /fs/proc | |
parent | [PATCH] genalloc warning fixes (diff) | |
download | linux-63967fa911c2c49376d0b1e171ef98e1b2b075af.tar.xz linux-63967fa911c2c49376d0b1e171ef98e1b2b075af.zip |
[PATCH] Missing __user in pointer referenced within copy_from_user
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>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 4f5745af8c19..01f7769da8e6 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -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; |