patch-2.1.115 linux/fs/devpts/root.c

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

diff -u --recursive --new-file v2.1.114/linux/fs/devpts/root.c linux/fs/devpts/root.c
@@ -98,7 +98,7 @@
 		filp->f_pos = ++nr;
 		/* fall through */
 	default:
-		while ( nr < NR_PTYS+2 ) {
+		while ( nr < sbi->max_ptys ) {
 			int ptynr = nr - 2;
 			if ( sbi->inodes[ptynr] ) {
 				genptsname(numbuf, ptynr);

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