| To: | <netdev@xxxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] [2.4.20] filter_list destroy fix in net/sched/sch_csz.c |
| From: | "Dimitry V. Ketov" <Dimitry.Ketov@xxxxxxxxx> |
| Date: | Fri, 11 Apr 2003 13:11:17 +0400 |
| Cc: | <kuznet@xxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| Thread-index: | AcL2BZM+86EVewkGQc+3orAwc2LBoQ== |
| Thread-topic: | [PATCH] [2.4.20] filter_list destroy fix in net/sched/sch_csz.c |
Same as prio qdisc, the csz qdisc does not destroy its filter list, when
someone deletes qdisc from interface without explicit filter deleting.
So here is the patch. :)
--- linux-2.4.20/net/sched/sch_csz.c Fri Dec 21 20:42:06 2001
+++ linux/net/sched/sch_csz.c Fri Apr 11 12:33:08 2003
@@ -749,6 +749,15 @@
static void
csz_destroy(struct Qdisc* sch)
{
+ struct csz_sched_data *q = (struct csz_sched_data *)sch->data;
+ struct tcf_proto *tp;
+
+ while((tp = q->filter_list) != NULL)
+ {
+ q->filter_list = tp->next;
+ tp->ops->destroy(tp);
+ }
+
MOD_DEC_USE_COUNT;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | A better way to get driver stats than parsing /proc/net/dev ?, Ben Greear |
|---|---|
| Next by Date: | Re: A better way to get driver stats than parsing /proc/net/dev ?, Jason Lunz |
| Previous by Thread: | A better way to get driver stats than parsing /proc/net/dev ?, Ben Greear |
| Next by Thread: | bug in 2.4.20, Ury N. Stankevich |
| Indexes: | [Date] [Thread] [Top] [All Lists] |