mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[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>
This commit is contained in:
parent
96c62d51cc
commit
63967fa911
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue