patch-2.1.69 linux/fs/namei.c

Next file: linux/fs/nametrans.c
Previous file: linux/fs/isofs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.68/linux/fs/namei.c linux/fs/namei.c
@@ -131,7 +131,7 @@
 	unsigned long len = PAGE_SIZE;
 
 	if ((unsigned long) filename >= TASK_SIZE) {
-		if (get_fs() != KERNEL_DS)
+		if (!segment_eq(get_fs(), KERNEL_DS))
 			return -EFAULT;
 	} else if (TASK_SIZE - (unsigned long) filename < PAGE_SIZE)
 		len = TASK_SIZE - (unsigned long) filename;

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