patch-2.1.101 linux/fs/proc/inode.c

Next file: linux/fs/proc/link.c
Previous file: linux/fs/proc/inode-alloc.txt
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/fs/proc/inode.c linux/fs/proc/inode.c
@@ -382,10 +382,9 @@
 		inode->i_uid = p->euid;
 		inode->i_gid = p->egid;
 	}
-	switch (ino >> 8) {
+	if (ino & PROC_PID_FD_DIR) {
 		struct file * file;
-	case PROC_PID_FD_DIR:
-		ino &= 0xff;
+		ino &= 0x7fff;
 		file = fcheck_task(p, ino);
 		if (!file)
 			goto out_unlock;

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