patch-2.1.51 linux/fs/nfsd/export.c

Next file: linux/fs/open.c
Previous file: linux/fs/nfs/symlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.50/linux/fs/nfsd/export.c linux/fs/nfsd/export.c
@@ -248,7 +248,7 @@
 
 finish:
 	/* Release dentry */
-	if (err < 0 && dentry)
+	if (err < 0 && !IS_ERR(dentry))
 		dput(dentry);
 
 	/* Unlock hashtable */

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