diff options
Diffstat (limited to 'net/sched/sch_htb.c')
-rw-r--r-- | net/sched/sch_htb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index 97cbb9aec946..3c3294d01041 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c | |||
@@ -1380,15 +1380,15 @@ static int htb_delete(struct Qdisc *sch, unsigned long arg) | |||
1380 | 1380 | ||
1381 | sch_tree_lock(sch); | 1381 | sch_tree_lock(sch); |
1382 | 1382 | ||
1383 | /* delete from hash and active; remainder in destroy_class */ | ||
1384 | hlist_del_init(&cl->hlist); | ||
1385 | |||
1386 | if (!cl->level) { | 1383 | if (!cl->level) { |
1387 | qlen = cl->un.leaf.q->q.qlen; | 1384 | qlen = cl->un.leaf.q->q.qlen; |
1388 | qdisc_reset(cl->un.leaf.q); | 1385 | qdisc_reset(cl->un.leaf.q); |
1389 | qdisc_tree_decrease_qlen(cl->un.leaf.q, qlen); | 1386 | qdisc_tree_decrease_qlen(cl->un.leaf.q, qlen); |
1390 | } | 1387 | } |
1391 | 1388 | ||
1389 | /* delete from hash and active; remainder in destroy_class */ | ||
1390 | hlist_del_init(&cl->hlist); | ||
1391 | |||
1392 | if (cl->prio_activity) | 1392 | if (cl->prio_activity) |
1393 | htb_deactivate(q, cl); | 1393 | htb_deactivate(q, cl); |
1394 | 1394 | ||