patch-2.1.4 linux/include/linux/mm.h

Next file: linux/include/linux/msg.h
Previous file: linux/include/linux/in.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/include/linux/mm.h linux/include/linux/mm.h
@@ -21,13 +21,7 @@
 
 extern inline int verify_area(int type, const void * addr, unsigned long size)
 {
-	int retval = 0;
-	if (get_fs() != KERNEL_DS) {
-		retval = -EFAULT;
-		if (size <= TASK_SIZE && TASK_SIZE-size >= (unsigned long) addr)
-			retval = verify_write(type,addr,size);
-	}
-	return retval;
+	return access_ok(type,addr,size)?0:-EFAULT;
 }
 
 /*
@@ -251,7 +245,7 @@
 
 	page = __get_free_page(priority);
 	if (page)
-		memset((void *) page, 0, PAGE_SIZE);
+		clear_page(page);
 	return page;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov