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 test for error in creating root vno...
details: https://anonhg.NetBSD.org/src/rev/b1cb773f3878
branches: trunk
changeset: 749470:b1cb773f3878
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Nov 30 12:32:13 2009 +0000
description:
test for error in creating root vnode before using it
diffstat:
sys/rump/librump/rumpvfs/rumpfs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r d24bd584af38 -r b1cb773f3878 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Mon Nov 30 12:07:28 2009 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Mon Nov 30 12:32:13 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.33 2009/11/30 11:18:22 pooka Exp $ */
+/* $NetBSD: rumpfs.c,v 1.34 2009/11/30 12:32:13 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.33 2009/11/30 11:18:22 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.34 2009/11/30 12:32:13 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -877,9 +877,9 @@
mutex_enter(&reclock);
error = makevnode(mp, rn, &rfsmp->rfsmp_rvp);
mutex_exit(&reclock);
- rfsmp->rfsmp_rvp->v_vflag |= VV_ROOT;
if (error)
panic("could not create root vnode: %d", error);
+ rfsmp->rfsmp_rvp->v_vflag |= VV_ROOT;
VOP_UNLOCK(rfsmp->rfsmp_rvp, 0);
mutex_enter(&mountlist_lock);
Home |
Main Index |
Thread Index |
Old Index