From 12a5de0e82d8e24852e1d81fd933490dcc335925 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 18 Feb 2010 09:04:55 -0800 Subject: [PATCH] kernel - TMPFS - Stabilization pass, fix lockf() * TMPFS needs to initialize the lockf structure embedded in tmpfs_node. * Fixes panic when using the structure. --- sys/vfs/tmpfs/tmpfs_subr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/vfs/tmpfs/tmpfs_subr.c b/sys/vfs/tmpfs/tmpfs_subr.c index 27795facc3..b228248de9 100644 --- a/sys/vfs/tmpfs/tmpfs_subr.c +++ b/sys/vfs/tmpfs/tmpfs_subr.c @@ -118,6 +118,7 @@ tmpfs_alloc_node(struct tmpfs_mount *tmp, enum vtype type, nnode->tn_gid = gid; nnode->tn_mode = mode; nnode->tn_id = tmpfs_fetch_ino(); + nnode->tn_advlock.init_done = 0; /* Type-specific initialization. */ switch (nnode->tn_type) { -- 2.11.4.GIT