Initialize lockf pointer. I missed this when I made NFS use the generic

advlock mechanism, and not doing so results in random system crashes.
This commit is contained in:
David Greenman 1994-08-10 19:48:23 +00:00
parent abb5479a19
commit 4c5483f462
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2010
2 changed files with 4 additions and 2 deletions

View File

@ -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 <sys/param.h>
@ -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;

View File

@ -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 <sys/param.h>
@ -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;