Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/altq fix a bug in a cbq list chasing.
details: https://anonhg.NetBSD.org/src/rev/c2a5c9635518
branches: trunk
changeset: 537873:c2a5c9635518
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Oct 07 02:57:39 2002 +0000
description:
fix a bug in a cbq list chasing.
this bug turns up only when 3 or more cbq instances are
created at a time.
sync w/kame
diffstat:
sys/altq/altq_cbq.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 04b19bc5910f -r c2a5c9635518 sys/altq/altq_cbq.c
--- a/sys/altq/altq_cbq.c Mon Oct 07 02:48:38 2002 +0000
+++ b/sys/altq/altq_cbq.c Mon Oct 07 02:57:39 2002 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: altq_cbq.c,v 1.5 2001/11/12 23:14:21 lukem Exp $ */
-/* $KAME: altq_cbq.c,v 1.9 2000/12/14 08:12:45 thorpej Exp $ */
+/* $NetBSD: altq_cbq.c,v 1.6 2002/10/07 02:57:39 itojun Exp $ */
+/* $KAME: altq_cbq.c,v 1.11 2002/10/04 14:24:09 kjc Exp $ */
/*
* Copyright (c) Sun Microsystems, Inc. 1993-1998 All rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: altq_cbq.c,v 1.5 2001/11/12 23:14:21 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: altq_cbq.c,v 1.6 2002/10/07 02:57:39 itojun Exp $");
#if defined(__FreeBSD__) || defined(__NetBSD__)
#include "opt_altq.h"
@@ -682,7 +682,7 @@
else {
cbq_state_t *cp;
- for (cp = cbq_list; cp != NULL; cp = cbqp->cbq_next)
+ for (cp = cbq_list; cp != NULL; cp = cp->cbq_next)
if (cp->cbq_next == cbqp) {
cp->cbq_next = cbqp->cbq_next;
break;
Home |
Main Index |
Thread Index |
Old Index