Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs zalloc new rumpfs nodes to make sur...
details: https://anonhg.NetBSD.org/src/rev/2358b94312cc
branches: trunk
changeset: 747191:2358b94312cc
user: pooka <pooka%NetBSD.org@localhost>
date: Sat Sep 05 11:02:49 2009 +0000
description:
zalloc new rumpfs nodes to make sure rn_vp is initially NULL.
Fixes problem pointed out by Nicolas Joly in private email.
diffstat:
sys/rump/librump/rumpvfs/rumpfs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f876f815e106 -r 2358b94312cc sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Sat Sep 05 10:16:46 2009 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Sat Sep 05 11:02:49 2009 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index