patch-2.1.69 linux/kernel/module.c

Next file: linux/mm/filemap.c
Previous file: linux/kernel/acct.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.68/linux/kernel/module.c linux/kernel/module.c
@@ -81,7 +81,7 @@
 	long retval;
 
 	if ((unsigned long)user_name >= TASK_SIZE
-	    && get_fs () != KERNEL_DS)
+	    && !segment_eq(get_fs (), KERNEL_DS))
 		return -EFAULT;
 
 	page = __get_free_page(GFP_KERNEL);

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