patch-2.3.99-pre3 linux/fs/nfsd/export.c
Next file: linux/fs/nfsd/nfs3xdr.c
Previous file: linux/fs/nfs/write.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Tue Mar 21 11:10:48 2000
- Orig file:
v2.3.99-pre2/linux/fs/nfsd/export.c
- Orig date:
Fri Mar 10 16:40:48 2000
diff -u --recursive --new-file v2.3.99-pre2/linux/fs/nfsd/export.c linux/fs/nfsd/export.c
@@ -483,7 +483,10 @@
* fh must be initialized before calling fh_compose
*/
fh_init(&fh, maxsize);
- err = fh_compose(&fh, exp, dentry);
+ if (fh_compose(&fh, exp, dentry))
+ err = -EINVAL;
+ else
+ err = 0;
memcpy(f, &fh.fh_handle, sizeof(struct knfsd_fh));
fh_put(&fh);
return err;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)