patch-2.0.32 linux/fs/proc/inode.c
Next file: linux/fs/proc/link.c
Previous file: linux/fs/proc/fd.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sat Nov 1 12:31:17 1997
- Orig file:
v2.0.31/linux/fs/proc/inode.c
- Orig date:
Sat Nov 30 02:21:21 1996
diff -u --recursive --new-file v2.0.31/linux/fs/proc/inode.c linux/fs/proc/inode.c
@@ -236,7 +236,7 @@
switch (ino >> 8) {
case PROC_PID_FD_DIR:
ino &= 0xff;
- if (ino >= NR_OPEN || !p->files->fd[ino])
+ if (ino >= NR_OPEN || !p->files || !p->files->fd[ino])
return;
inode->i_op = &proc_link_inode_operations;
inode->i_size = 64;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov