summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_hfsc.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-07-01 19:53:09 -0700
committerDavid S. Miller <davem@davemloft.net>2008-07-01 19:53:09 -0700
commita4aebb83cf0da0363684f1c339f7e6149a3e74c1 (patch)
treeb009adf7577ff4822ede398b1a162374ce32fb81 /net/sched/sch_hfsc.c
parentff31ab56c0e900235f653e375fc3b01ba2d8d6a3 (diff)
downloadop-kernel-dev-a4aebb83cf0da0363684f1c339f7e6149a3e74c1.zip
op-kernel-dev-a4aebb83cf0da0363684f1c339f7e6149a3e74c1.tar.gz
net-sched: fix filter destruction in atm/hfsc qdisc destruction
Filters need to be destroyed before beginning to destroy classes since the destination class needs to still be alive to unbind the filter. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_hfsc.c')
-rw-r--r--net/sched/sch_hfsc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
index eca83a3..e817aa0 100644
--- a/net/sched/sch_hfsc.c
+++ b/net/sched/sch_hfsc.c
@@ -1541,6 +1541,10 @@ hfsc_destroy_qdisc(struct Qdisc *sch)
unsigned int i;
for (i = 0; i < HFSC_HSIZE; i++) {
+ list_for_each_entry(cl, &q->clhash[i], hlist)
+ tcf_destroy_chain(&cl->filter_list);
+ }
+ for (i = 0; i < HFSC_HSIZE; i++) {
list_for_each_entry_safe(cl, next, &q->clhash[i], hlist)
hfsc_destroy_class(sch, cl);
}
OpenPOWER on IntegriCloud