Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41947
b: refs/heads/master
c: 814a175
h: refs/heads/master
i:
  41945: ba5c490
  41943: b6a4a88
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Dec 3, 2006
1 parent 93f82b6 commit 2923516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cbda6b6e2e2a0a84c0fcda8ea262c16d7a63fc8
refs/heads/master: 814a175e7b1531a4bcaa63be47bf58cacdcb5010
7 changes: 6 additions & 1 deletion trunk/net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,9 +1269,9 @@ static void htb_destroy_filters(struct tcf_proto **fl)
static void htb_destroy_class(struct Qdisc *sch, struct htb_class *cl)
{
struct htb_sched *q = qdisc_priv(sch);

if (!cl->level) {
BUG_TRAP(cl->un.leaf.q);
sch->q.qlen -= cl->un.leaf.q->q.qlen;
qdisc_destroy(cl->un.leaf.q);
}
qdisc_put_rtab(cl->rate);
Expand Down Expand Up @@ -1334,6 +1334,11 @@ static int htb_delete(struct Qdisc *sch, unsigned long arg)
/* delete from hash and active; remainder in destroy_class */
hlist_del_init(&cl->hlist);

if (!cl->level) {
sch->q.qlen -= cl->un.leaf.q->q.qlen;
qdisc_reset(cl->un.leaf.q);
}

if (cl->prio_activity)
htb_deactivate(q, cl);

Expand Down

0 comments on commit 2923516

Please sign in to comment.