提交 63967fa9 编写于 作者: G Glauber de Oliveira Costa 提交者: Linus Torvalds

[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: NGlauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 96c62d51
...@@ -581,7 +581,7 @@ static ssize_t mem_read(struct file * file, char __user * buf, ...@@ -581,7 +581,7 @@ static ssize_t mem_read(struct file * file, char __user * buf,
#ifndef mem_write #ifndef mem_write
/* This is a security hazard */ /* 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) size_t count, loff_t *ppos)
{ {
int copied; int copied;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册