diff --git a/fs/proc/base.c b/fs/proc/base.c index 4f5745af8c193809f37d9f2cfa78be383d42ef9c..01f7769da8e67bf7f7091f6ece8ca09b060b859f 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -581,7 +581,7 @@ static ssize_t mem_read(struct file * file, char __user * buf, #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;