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
- Lines: 9
- Date:
Mon Dec 1 10:34:11 1997
- Orig file:
v2.1.68/linux/fs/namei.c
- Orig date:
Tue Nov 18 17:22:08 1997
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