Patchwork [14/14] pkt_sched: sch_generic: Purge qdisc->requeue list in qdisc_reset().

login
register
mail settings
Submitter Jarek Poplawski
Date Oct. 14, 2008, 9:55 a.m.
Message ID <20081014095541.GO10804@ff.dom.local>
Download mbox | patch
Permalink /patch/4439/
State Rejected
Delegated to: David Miller
Headers show

Comments

Jarek Poplawski - Oct. 14, 2008, 9:55 a.m.
pkt_sched: sch_generic: Purge qdisc->requeue list in qdisc_reset().

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
---
 net/sched/sch_generic.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 9560ea1..eceec2f 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -504,6 +504,7 @@  void qdisc_reset(struct Qdisc *qdisc)
 {
 	const struct Qdisc_ops *ops = qdisc->ops;
 
+	__skb_queue_purge(&qdisc->requeue);
 	if (ops->reset)
 		ops->reset(qdisc);
 }