|
@@ -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;
|