patch-2.4.0-test10 linux/fs/proc/base.c

Next file: linux/fs/super.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test9/linux/fs/proc/base.c linux/fs/proc/base.c
@@ -347,6 +347,10 @@
 	return copied;
 }
 
+#define mem_write NULL
+
+#ifndef mem_write
+/* This is a security hazard */
 static ssize_t mem_write(struct file * file, const char * buf,
 			 size_t count, loff_t *ppos)
 {
@@ -385,6 +389,7 @@
 	free_page((unsigned long) page);
 	return copied;
 }
+#endif
 
 static struct file_operations proc_mem_operations = {
 	read:		mem_read,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)