mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
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:
parent
abb5479a19
commit
4c5483f462
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2010
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user