patch-2.3.99-pre2 linux/fs/nfsd/nfsfh.c

Next file: linux/fs/nfsd/nfsproc.c
Previous file: linux/fs/nfsd/nfsctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre1/linux/fs/nfsd/nfsfh.c linux/fs/nfsd/nfsfh.c
@@ -147,7 +147,7 @@
 			generation);
 
 		iput(inode);
-		return NULL;
+		return ERR_PTR(-ESTALE);
 	}
 	/* now to find a dentry.
 	 * If possible, get a well-connected one
@@ -353,10 +353,6 @@
 	if (IS_ERR(result))
 		goto err_out;
 	err = -ESTALE;
-	if (!result) {
-		dprintk("find_fh_dentry: No inode found.\n");
-		goto err_out;
-	}
 	if (! (result->d_flags & DCACHE_NFSD_DISCONNECTED))
 		return result;
 

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