Commit fe6bea7f authored by WANG Cong's avatar WANG Cong Committed by David S. Miller

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: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c42a6e8b
...@@ -216,6 +216,7 @@ static struct Qdisc_ops plug_qdisc_ops __read_mostly = { ...@@ -216,6 +216,7 @@ static struct Qdisc_ops plug_qdisc_ops __read_mostly = {
.peek = qdisc_peek_head, .peek = qdisc_peek_head,
.init = plug_init, .init = plug_init,
.change = plug_change, .change = plug_change,
.reset = qdisc_reset_queue,
.owner = THIS_MODULE, .owner = THIS_MODULE,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment