diff options
Diffstat (limited to 'net/sched/sch_cbq.c')
-rw-r--r-- | net/sched/sch_cbq.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c index dc9f11aa7..a0c2d7585 100644 --- a/net/sched/sch_cbq.c +++ b/net/sched/sch_cbq.c @@ -506,7 +506,7 @@ static void cbq_ovl_classic(struct cbq_class *cl) } } - q->wd_expires = delay; + q->wd_expires = base_delay; } } @@ -1740,9 +1740,13 @@ cbq_destroy(struct Qdisc* sch) } for (h = 0; h < 16; h++) { - for (cl = q->classes[h]; cl; cl = cl->next) + struct cbq_class *next; + + for (cl = q->classes[h]; cl; cl = next) { + next = cl->next; if (cl != &q->link) cbq_destroy_class(cl); + } } qdisc_put_rtab(q->link.R_tab); |