Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern emul_unregister(): fix incorrect loop condition - e...
details: https://anonhg.NetBSD.org/src/rev/18fc76fb9a74
branches: trunk
changeset: 500334:18fc76fb9a74
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Dec 10 12:42:30 2000 +0000
description:
emul_unregister(): fix incorrect loop condition - execsw[] is not NULL
terminated
diffstat:
sys/kern/kern_exec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 56260d7ca8c4 -r 18fc76fb9a74 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c Sun Dec 10 12:23:50 2000 +0000
+++ b/sys/kern/kern_exec.c Sun Dec 10 12:42:30 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_exec.c,v 1.131 2000/12/09 12:38:23 jdolecek Exp $ */
+/* $NetBSD: kern_exec.c,v 1.132 2000/12/10 12:42:30 jdolecek Exp $ */
/*-
* Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@@ -815,7 +815,7 @@
}
/* test if any execw[] entry is still using this */
- for(i=0; execsw[i]; i++) {
+ for(i=0; i < nexecs; i++) {
if (execsw[i]->es_emul == it->el_emul) {
error = EBUSY;
goto out;
Home |
Main Index |
Thread Index |
Old Index