From 87319696e589dbede61a457660086cdd528538e4 Mon Sep 17 00:00:00 2001 From: pooka Date: Tue, 2 Oct 2007 12:01:17 +0000 Subject: [PATCH] Add a comment clarifying that in the succesful case the function returns from the middle of the loop. --- sys/kern/kern_exec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index d3b9f0918064..ca82cd81b056 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_exec.c,v 1.248 2007/09/20 20:51:38 christos Exp $ */ +/* $NetBSD: kern_exec.c,v 1.249 2007/10/02 12:01:17 pooka Exp $ */ /*- * Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.248 2007/09/20 20:51:38 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.249 2007/10/02 12:01:17 pooka Exp $"); #include "opt_ktrace.h" #include "opt_syscall_debug.h" @@ -350,6 +350,8 @@ check_exec(struct lwp *l, struct exec_package *epp) return error; } + /* not found, error */ + /* * free any vmspace-creation commands, * and release their references