summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/verified_exec.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/verified_exec.c b/sys/dev/verified_exec.c
index bdbc405053e..d69de7b2c59 100644
--- a/sys/dev/verified_exec.c
+++ b/sys/dev/verified_exec.c
@@ -1,4 +1,4 @@
-/* $NetBSD: verified_exec.c,v 1.31 2005/12/12 21:47:58 elad Exp $ */
+/* $NetBSD: verified_exec.c,v 1.32 2006/05/06 13:25:36 elad Exp $ */
/*-
* Copyright 2005 Elad Efrat <elad@bsd.org.il>
@@ -31,9 +31,9 @@
#include <sys/cdefs.h>
#if defined(__NetBSD__)
-__KERNEL_RCSID(0, "$NetBSD: verified_exec.c,v 1.31 2005/12/12 21:47:58 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: verified_exec.c,v 1.32 2006/05/06 13:25:36 elad Exp $");
#else
-__RCSID("$Id: verified_exec.c,v 1.31 2005/12/12 21:47:58 elad Exp $\n$NetBSD: verified_exec.c,v 1.31 2005/12/12 21:47:58 elad Exp $");
+__RCSID("$Id: verified_exec.c,v 1.32 2006/05/06 13:25:36 elad Exp $\n$NetBSD: verified_exec.c,v 1.32 2006/05/06 13:25:36 elad Exp $");
#endif
#include <sys/param.h>
@@ -261,8 +261,10 @@ veriexec_load(struct veriexec_params *params, struct lwp *l)
/* Get attributes for device and inode. */
error = VOP_GETATTR(nid.ni_vp, &va, l->l_proc->p_ucred, l);
- if (error)
+ if (error) {
+ vrele(nid.ni_vp);
return (error);
+ }
/* Release our reference to the vnode. (namei) */
vrele(nid.ni_vp);