diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2015-07-21 16:31:53 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-24 22:57:14 -0700 |
commit | fe6bea7f1f3a09fc06d835446d34d3b3b6a543fb (patch) | |
tree | e9b5ae888d1221c6d312d3ec172729c01a952834 /net/sched | |
parent | c42a6e8b2907d68844bb750f839982ba2556c970 (diff) | |
download | lwn-fe6bea7f1f3a09fc06d835446d34d3b3b6a543fb.tar.gz lwn-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.c | 1 |
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, }; |