diff options
Diffstat (limited to 'net/sched/sch_hfsc.c')
-rw-r--r-- | net/sched/sch_hfsc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c index 74226b265528..5022f9c1f34b 100644 --- a/net/sched/sch_hfsc.c +++ b/net/sched/sch_hfsc.c | |||
@@ -1139,8 +1139,11 @@ hfsc_delete_class(struct Qdisc *sch, unsigned long arg) | |||
1139 | hfsc_purge_queue(sch, cl); | 1139 | hfsc_purge_queue(sch, cl); |
1140 | qdisc_class_hash_remove(&q->clhash, &cl->cl_common); | 1140 | qdisc_class_hash_remove(&q->clhash, &cl->cl_common); |
1141 | 1141 | ||
1142 | if (--cl->refcnt == 0) | 1142 | BUG_ON(--cl->refcnt == 0); |
1143 | hfsc_destroy_class(sch, cl); | 1143 | /* |
1144 | * This shouldn't happen: we "hold" one cops->get() when called | ||
1145 | * from tc_ctl_tclass; the destroy method is done from cops->put(). | ||
1146 | */ | ||
1144 | 1147 | ||
1145 | sch_tree_unlock(sch); | 1148 | sch_tree_unlock(sch); |
1146 | return 0; | 1149 | return 0; |