sch_teql: should not dereference skb after ndo_start_xmit()
authorEric Dumazet <dada1@cosmosbay.com>
Mon, 18 May 2009 22:12:31 +0000 (15:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2009 22:12:31 +0000 (15:12 -0700)
It is illegal to dereference a skb after a successful ndo_start_xmit()
call. We must store skb length in a local variable instead.

Bug was introduced in 2.6.27 by commit 0abf77e55a2459aa9905be4b226e4729d5b4f0cb
(net_sched: Add accessor function for packet length for qdiscs)

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found