Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern In cwdinit(), if there isn't a cdir vnode yet, don'...
details: https://anonhg.NetBSD.org/src/rev/e4232d57f735
branches: trunk
changeset: 481198:e4232d57f735
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Jan 24 17:57:34 2000 +0000
description:
In cwdinit(), if there isn't a cdir vnode yet, don't VREF() it.
diffstat:
sys/kern/kern_descrip.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r eee04d5e41ae -r e4232d57f735 sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c Mon Jan 24 17:52:24 2000 +0000
+++ b/sys/kern/kern_descrip.c Mon Jan 24 17:57:34 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_descrip.c,v 1.62 1999/12/08 18:53:56 sommerfeld Exp $ */
+/* $NetBSD: kern_descrip.c,v 1.63 2000/01/24 17:57:34 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -746,7 +746,8 @@
cwdi = pool_get(&cwdi_pool, PR_WAITOK);
cwdi->cwdi_cdir = p->p_cwdi->cwdi_cdir;
- VREF(cwdi->cwdi_cdir);
+ if (cwdi->cwdi_cdir)
+ VREF(cwdi->cwdi_cdir);
cwdi->cwdi_rdir = p->p_cwdi->cwdi_rdir;
if (cwdi->cwdi_rdir)
VREF(cwdi->cwdi_rdir);
Home |
Main Index |
Thread Index |
Old Index