patch-2.3.99-pre7 linux/fs/file_table.c

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

diff -u --recursive --new-file v2.3.99-pre6/linux/fs/file_table.c linux/fs/file_table.c
@@ -131,9 +131,9 @@
 	filp->f_vfsmnt = NULL;
 	if (filp->f_mode & FMODE_WRITE)
 		put_write_access(inode);
+	dput(dentry);
 	if (mnt)
 		mntput(mnt);
-	dput(dentry);
 }
 
 void _fput(struct file *file)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)