Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/sysvbfs Add forgotten memset() to clear sysvbfs nodes...
details: https://anonhg.NetBSD.org/src/rev/a5a3f5b9ef1b
branches: trunk
changeset: 335301:a5a3f5b9ef1b
user: hannken <hannken%NetBSD.org@localhost>
date: Fri Jan 02 16:51:02 2015 +0000
description:
Add forgotten memset() to clear sysvbfs nodes before setting them up.
diffstat:
sys/fs/sysvbfs/sysvbfs_vfsops.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 400d2b1ab272 -r a5a3f5b9ef1b sys/fs/sysvbfs/sysvbfs_vfsops.c
--- a/sys/fs/sysvbfs/sysvbfs_vfsops.c Fri Jan 02 16:38:45 2015 +0000
+++ b/sys/fs/sysvbfs/sysvbfs_vfsops.c Fri Jan 02 16:51:02 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysvbfs_vfsops.c,v 1.45 2014/12/26 15:23:21 hannken Exp $ */
+/* $NetBSD: sysvbfs_vfsops.c,v 1.46 2015/01/02 16:51:02 hannken Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vfsops.c,v 1.45 2014/12/26 15:23:21 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vfsops.c,v 1.46 2015/01/02 16:51:02 hannken Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -336,6 +336,7 @@
}
bnode = pool_get(&sysvbfs_node_pool, PR_WAITOK);
+ memset(bnode, 0, sizeof(*bnode));
vp->v_tag = VT_SYSVBFS;
vp->v_op = sysvbfs_vnodeop_p;
Home |
Main Index |
Thread Index |
Old Index