net-sched: change tcf_destroy_chain() to clear start of filter list
Pass double tcf_proto pointers to tcf_destroy_chain() to make it clear the start of the filter list for more consistency. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
77a538d5aa
commit
ff31ab56c0
@@ -1238,7 +1238,7 @@ static void htb_destroy_class(struct Qdisc *sch, struct htb_class *cl)
|
||||
qdisc_put_rtab(cl->rate);
|
||||
qdisc_put_rtab(cl->ceil);
|
||||
|
||||
tcf_destroy_chain(cl->filter_list);
|
||||
tcf_destroy_chain(&cl->filter_list);
|
||||
|
||||
while (!list_empty(&cl->children))
|
||||
htb_destroy_class(sch, list_entry(cl->children.next,
|
||||
@@ -1267,7 +1267,7 @@ static void htb_destroy(struct Qdisc *sch)
|
||||
and surprisingly it worked in 2.4. But it must precede it
|
||||
because filter need its target class alive to be able to call
|
||||
unbind_filter on it (without Oops). */
|
||||
tcf_destroy_chain(q->filter_list);
|
||||
tcf_destroy_chain(&q->filter_list);
|
||||
|
||||
while (!list_empty(&q->root))
|
||||
htb_destroy_class(sch, list_entry(q->root.next,
|
||||
|
Reference in New Issue
Block a user