diff options
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_atm.c | 1 | ||||
-rw-r--r-- | net/sched/sch_cbq.c | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c index be7d299acd73..d1c383fca82c 100644 --- a/net/sched/sch_atm.c +++ b/net/sched/sch_atm.c | |||
@@ -599,6 +599,7 @@ static void atm_tc_destroy(struct Qdisc *sch) | |||
599 | /* races ? */ | 599 | /* races ? */ |
600 | while ((flow = p->flows)) { | 600 | while ((flow = p->flows)) { |
601 | tcf_destroy_chain(flow->filter_list); | 601 | tcf_destroy_chain(flow->filter_list); |
602 | flow->filter_list = NULL; | ||
602 | if (flow->ref > 1) | 603 | if (flow->ref > 1) |
603 | printk(KERN_ERR "atm_destroy: %p->ref = %d\n",flow, | 604 | printk(KERN_ERR "atm_destroy: %p->ref = %d\n",flow, |
604 | flow->ref); | 605 | flow->ref); |
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c index a294542cb8e4..ee2d5967d109 100644 --- a/net/sched/sch_cbq.c +++ b/net/sched/sch_cbq.c | |||
@@ -1748,10 +1748,12 @@ cbq_destroy(struct Qdisc* sch) | |||
1748 | * classes from root to leafs which means that filters can still | 1748 | * classes from root to leafs which means that filters can still |
1749 | * be bound to classes which have been destroyed already. --TGR '04 | 1749 | * be bound to classes which have been destroyed already. --TGR '04 |
1750 | */ | 1750 | */ |
1751 | for (h = 0; h < 16; h++) | 1751 | for (h = 0; h < 16; h++) { |
1752 | for (cl = q->classes[h]; cl; cl = cl->next) | 1752 | for (cl = q->classes[h]; cl; cl = cl->next) { |
1753 | tcf_destroy_chain(cl->filter_list); | 1753 | tcf_destroy_chain(cl->filter_list); |
1754 | 1754 | cl->filter_list = NULL; | |
1755 | } | ||
1756 | } | ||
1755 | for (h = 0; h < 16; h++) { | 1757 | for (h = 0; h < 16; h++) { |
1756 | struct cbq_class *next; | 1758 | struct cbq_class *next; |
1757 | 1759 | ||