patch-2.0.32 linux/fs/proc/link.c

Next file: linux/fs/vfat/namei.c
Previous file: linux/fs/proc/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.31/linux/fs/proc/link.c linux/fs/proc/link.c
@@ -121,7 +121,7 @@
 				if (!p->files)
 					break;
 				ino &= 0xff;
-				if (ino < NR_OPEN && p->files->fd[ino]) {
+				if (ino < NR_OPEN && p->files && p->files->fd[ino]) {
 					new_inode = p->files->fd[ino]->f_inode;
 				}
 				break;

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