patch-2.1.120 linux/fs/nfsd/lockd.c

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

diff -u --recursive --new-file v2.1.119/linux/fs/nfsd/lockd.c linux/fs/nfsd/lockd.c
@@ -22,12 +22,13 @@
 static u32
 nlm_fopen(struct svc_rqst *rqstp, struct knfs_fh *f, struct file *filp)
 {
-	struct svc_fh	fh;
 	u32		nfserr;
+	struct svc_fh	fh;
 
+	/* must initialize before using! */
+	fh_init(&fh);
 	fh.fh_handle = *f;
 	fh.fh_export = NULL;
-	fh.fh_dverified = 0;
 
 	nfserr = nfsd_open(rqstp, &fh, S_IFREG, 0, filp);
 	if (!nfserr)

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