pkt_sched: sch_generic: Kfree gso_skb in qdisc_reset()
authorJarek Poplawski <jarkao2@gmail.com>
Mon, 3 Nov 2008 10:52:50 +0000 (02:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Nov 2008 10:52:50 +0000 (02:52 -0800)
commit67305ebc992abf2121fb2149fd8a707cd7cfcbd2
tree4d6972424550db5ff5f42290f81c29a31e1fda49
parent5799de0b12c773874282444052da401989075df6
pkt_sched: sch_generic: Kfree gso_skb in qdisc_reset()

Since gso_skb is re-used for qdisc_peek_dequeued(), and this skb is
counted in the qdisc->q.qlen, it has to be kfreed during qdisc_reset()
when qlen is zeroed.

With help from David S. Miller <davem@davemloft.net>

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c