diff --git a/fs/proc/base.c b/fs/proc/base.c index efb304854b74..1a8d756021f2 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -891,6 +891,10 @@ static ssize_t mem_read(struct file * file, char __user * buf, return ret; } +#define mem_write NULL + +#ifndef mem_write +/* This is a security hazard */ static ssize_t mem_write(struct file * file, const char __user *buf, size_t count, loff_t *ppos) { @@ -949,6 +953,7 @@ static ssize_t mem_write(struct file * file, const char __user *buf, out_no_task: return copied; } +#endif loff_t mem_lseek(struct file *file, loff_t offset, int orig) {