Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 don't vrele a bogus pointer if the namei() o...
details: https://anonhg.NetBSD.org/src/rev/650f786374e8
branches: trunk
changeset: 473296:650f786374e8
user: cgd <cgd%NetBSD.org@localhost>
date: Fri May 28 04:39:14 1999 +0000
description:
don't vrele a bogus pointer if the namei() of the loader fails
diffstat:
sys/compat/osf1/osf1_exec.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r a01f1e3a5df9 -r 650f786374e8 sys/compat/osf1/osf1_exec.c
--- a/sys/compat/osf1/osf1_exec.c Thu May 27 21:50:03 1999 +0000
+++ b/sys/compat/osf1/osf1_exec.c Fri May 28 04:39:14 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_exec.c,v 1.9 1999/05/05 01:51:32 cgd Exp $ */
+/* $NetBSD: osf1_exec.c,v 1.10 1999/05/28 04:39:14 cgd Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -253,7 +253,7 @@
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE,
emul_arg->loader_name, p);
if ((error = namei(&nd)) != 0)
- goto bad;
+ goto bad_no_vp;
ldr_vp = nd.ni_vp;
/*
@@ -341,5 +341,6 @@
VOP_UNLOCK(ldr_vp, 0);
bad:
vrele(ldr_vp);
+bad_no_vp:
return (error);
}
Home |
Main Index |
Thread Index |
Old Index