patch-2.3.99-pre3 linux/fs/nfsd/nfsproc.c

Next file: linux/fs/nfsd/nfssvc.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-pre2/linux/fs/nfsd/nfsproc.c linux/fs/nfsd/nfsproc.c
@@ -223,9 +223,10 @@
 		goto done;
 	fh_lock(dirfhp);
 	dchild = lookup_one(argp->name, dget(dirfhp->fh_dentry));
-	nfserr = nfserrno(PTR_ERR(dchild));
-	if (IS_ERR(dchild))
+	if (IS_ERR(dchild)) {
+		nfserr = nfserrno(PTR_ERR(dchild));
 		goto out_unlock;
+	}
 	fh_init(newfhp, NFS_FHSIZE);
 	nfserr = fh_compose(newfhp, dirfhp->fh_export, dchild);
 	if (!nfserr && !dchild->d_inode)

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