aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_cbq.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_cbq.c')
-rw-r--r--net/sched/sch_cbq.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c
index 9e43ed949167..d728d8111732 100644
--- a/net/sched/sch_cbq.c
+++ b/net/sched/sch_cbq.c
@@ -1960,8 +1960,11 @@ static int cbq_delete(struct Qdisc *sch, unsigned long arg)
1960 cbq_rmprio(q, cl); 1960 cbq_rmprio(q, cl);
1961 sch_tree_unlock(sch); 1961 sch_tree_unlock(sch);
1962 1962
1963 if (--cl->refcnt == 0) 1963 BUG_ON(--cl->refcnt == 0);
1964 cbq_destroy_class(sch, cl); 1964 /*
1965 * This shouldn't happen: we "hold" one cops->get() when called
1966 * from tc_ctl_tclass; the destroy method is done from cops->put().
1967 */
1965 1968
1966 return 0; 1969 return 0;
1967} 1970}