From 4c5483f462e3ee6779eaa032ed611415dff45861 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Wed, 10 Aug 1994 19:48:23 +0000 Subject: [PATCH] Initialize lockf pointer. I missed this when I made NFS use the generic advlock mechanism, and not doing so results in random system crashes. --- sys/nfs/nfs_node.c | 3 ++- sys/nfsclient/nfs_node.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/nfs/nfs_node.c b/sys/nfs/nfs_node.c index 2054fdf3cb17..00e42c2d4f18 100644 --- a/sys/nfs/nfs_node.c +++ b/sys/nfs/nfs_node.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_node.c 8.2 (Berkeley) 12/30/93 - * $Id$ + * $Id: nfs_node.c,v 1.3 1994/08/02 07:52:06 davidg Exp $ */ #include @@ -146,6 +146,7 @@ nfs_nget(mntp, fhp, npp) np->n_sillyrename = (struct sillyrename *)0; np->n_size = 0; np->n_mtime = 0; + np->n_lockf = 0; if (VFSTONFS(mntp)->nm_flag & NFSMNT_NQNFS) { np->n_brev = 0; np->n_lrev = 0; diff --git a/sys/nfsclient/nfs_node.c b/sys/nfsclient/nfs_node.c index 2054fdf3cb17..00e42c2d4f18 100644 --- a/sys/nfsclient/nfs_node.c +++ b/sys/nfsclient/nfs_node.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_node.c 8.2 (Berkeley) 12/30/93 - * $Id$ + * $Id: nfs_node.c,v 1.3 1994/08/02 07:52:06 davidg Exp $ */ #include @@ -146,6 +146,7 @@ nfs_nget(mntp, fhp, npp) np->n_sillyrename = (struct sillyrename *)0; np->n_size = 0; np->n_mtime = 0; + np->n_lockf = 0; if (VFSTONFS(mntp)->nm_flag & NFSMNT_NQNFS) { np->n_brev = 0; np->n_lrev = 0;