patch-1.3.28 linux/fs/proc/fd.c
Next file: linux/fs/proc/inode.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
-  Lines: 9
 -  Date:
Fri Sep 15 12:44:05 1995
 -  Orig file: 
v1.3.27/linux/fs/proc/fd.c
 -  Orig date: 
Tue Aug 15 20:39:04 1995
 
diff -u --recursive --new-file v1.3.27/linux/fs/proc/fd.c linux/fs/proc/fd.c
@@ -150,6 +150,8 @@
 	}
 
 	for (fd -= 2 ; fd < NR_OPEN; fd++, filp->f_pos++) {
+		if (!p->files)
+			break;
 		if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode)
 			continue;
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this