sch_teql: should not dereference skb after ndo_start_xmit()
commitc0f84d0d4be3f7d818b4ffb04d27f9bae64397f0
authorEric Dumazet <dada1@cosmosbay.com>
Mon, 18 May 2009 22:12:31 +0000 (18 15:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2009 22:12:31 +0000 (18 15:12 -0700)
treee36a3f3e2d5cdbc9dfdbd2c5dd4857d93d8776b9
parent775273131810caa41dfc7f9e552ea5d8508caf40
sch_teql: should not dereference skb after ndo_start_xmit()

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>
net/sched/sch_teql.c