Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs minor amendment to previous
details: https://anonhg.NetBSD.org/src/rev/4d0412eac339
branches: trunk
changeset: 767385:4d0412eac339
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Jul 17 22:14:47 2011 +0000
description:
minor amendment to previous
diffstat:
sys/ufs/ufs/ufs_wapbl.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r 59c5b101af3d -r 4d0412eac339 sys/ufs/ufs/ufs_wapbl.c
--- a/sys/ufs/ufs/ufs_wapbl.c Sun Jul 17 22:07:59 2011 +0000
+++ b/sys/ufs/ufs/ufs_wapbl.c Sun Jul 17 22:14:47 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_wapbl.c,v 1.17 2011/07/17 22:07:59 dholland Exp $ */
+/* $NetBSD: ufs_wapbl.c,v 1.18 2011/07/17 22:14:47 dholland Exp $ */
/*-
* Copyright (c) 2003,2006,2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_wapbl.c,v 1.17 2011/07/17 22:07:59 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_wapbl.c,v 1.18 2011/07/17 22:14:47 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -246,7 +246,9 @@
VOP_UNLOCK(v1);
}
VOP_UNLOCK(d1);
- vrele(v1);
+ if (v1) {
+ vrele(v1);
+ }
return ENOENT;
}
error = do_relookup(d2, ulr2, &v2, cn2);
@@ -268,7 +270,9 @@
VOP_UNLOCK(v1);
}
VOP_UNLOCK(d1);
- vrele(v1);
+ if (v1) {
+ vrele(v1);
+ }
return error;
}
if (v1 && v1->v_type != VDIR && v1 != v2) {
Home |
Main Index |
Thread Index |
Old Index