summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2015-07-22 01:31:53 +0200
committerDavid S. Miller <davem@davemloft.net>2015-07-25 07:57:14 +0200
commitfe6bea7f1f3a09fc06d835446d34d3b3b6a543fb (patch)
treee9b5ae888d1221c6d312d3ec172729c01a952834 /net/sched
parentMerge branch 'fib_select_default-fixes' (diff)
downloadlinux-fe6bea7f1f3a09fc06d835446d34d3b3b6a543fb.tar.xz
linux-fe6bea7f1f3a09fc06d835446d34d3b3b6a543fb.zip
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 89f8fcf73f18..ade9445a55ab 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,
};