patch-2.4.21 linux-2.4.21/net/sched/sch_prio.c

Next file: linux-2.4.21/net/sched/sch_sfq.c
Previous file: linux-2.4.21/net/sched/sch_htb.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/net/sched/sch_prio.c linux-2.4.21/net/sched/sch_prio.c
@@ -158,6 +158,12 @@
 {
 	int prio;
 	struct prio_sched_data *q = (struct prio_sched_data *)sch->data;
+	struct tcf_proto *tp;
+
+	while ((tp = q->filter_list) != NULL) {
+		q->filter_list = tp->next;
+		tp->ops->destroy(tp);
+	}
 
 	for (prio=0; prio<q->bands; prio++) {
 		qdisc_destroy(q->queues[prio]);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)