|
@@ -572,8 +572,10 @@ static void atm_tc_destroy(struct Qdisc *sch)
|
|
|
struct atm_flow_data *flow, *tmp;
|
|
|
|
|
|
pr_debug("atm_tc_destroy(sch %p,[qdisc %p])\n", sch, p);
|
|
|
- list_for_each_entry(flow, &p->flows, list)
|
|
|
+ list_for_each_entry(flow, &p->flows, list) {
|
|
|
tcf_block_put(flow->block);
|
|
|
+ flow->block = NULL;
|
|
|
+ }
|
|
|
|
|
|
list_for_each_entry_safe(flow, tmp, &p->flows, list) {
|
|
|
if (flow->ref > 1)
|