Module Name: src
Committed By: pooka
Date: Sat Sep 5 11:02:49 UTC 2009
Modified Files:
src/sys/rump/librump/rumpvfs: rumpfs.c
Log Message:
zalloc new rumpfs nodes to make sure rn_vp is initially NULL.
Fixes problem pointed out by Nicolas Joly in private email.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/rump/librump/rumpvfs/rumpfs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/librump/rumpvfs/rumpfs.c
diff -u src/sys/rump/librump/rumpvfs/rumpfs.c:1.22 src/sys/rump/librump/rumpvfs/rumpfs.c:1.23
--- src/sys/rump/librump/rumpvfs/rumpfs.c:1.22 Tue Aug 4 12:40:42 2009
+++ src/sys/rump/librump/rumpvfs/rumpfs.c Sat Sep 5 11:02:49 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.22 2009/08/04 12:40:42 pooka Exp $ */
+/* $NetBSD: rumpfs.c,v 1.23 2009/09/05 11:02:49 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.22 2009/08/04 12:40:42 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.23 2009/09/05 11:02:49 pooka Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@@ -254,7 +254,7 @@
struct vattr *va;
struct timespec ts;
- rn = kmem_alloc(sizeof(*rn), KM_SLEEP);
+ rn = kmem_zalloc(sizeof(*rn), KM_SLEEP);
LIST_INIT(&rn->rn_dir);
nanotime(&ts);