summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2015-07-21 16:31:53 -0700
committerDavid S. Miller <davem@davemloft.net>2015-07-24 22:57:14 -0700
commitfe6bea7f1f3a09fc06d835446d34d3b3b6a543fb (patch)
treee9b5ae888d1221c6d312d3ec172729c01a952834 /net/sched
parentc42a6e8b2907d68844bb750f839982ba2556c970 (diff)
downloadop-kernel-dev-fe6bea7f1f3a09fc06d835446d34d3b3b6a543fb.zip
op-kernel-dev-fe6bea7f1f3a09fc06d835446d34d3b3b6a543fb.tar.gz
sch_plug: purge buffered packets during reset
Otherwise the skbuff related structures are not correctly refcount'ed. Cc: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_plug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_plug.c b/net/sched/sch_plug.c
index 89f8fcf..ade9445 100644
--- a/net/sched/sch_plug.c
+++ b/net/sched/sch_plug.c
@@ -216,6 +216,7 @@ static struct Qdisc_ops plug_qdisc_ops __read_mostly = {
.peek = qdisc_peek_head,
.init = plug_init,
.change = plug_change,
+ .reset = qdisc_reset_queue,
.owner = THIS_MODULE,
};
OpenPOWER on IntegriCloud