]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Jun 2009 16:39:51 +0000 (09:39 -0700)
commitefe0627824eeb725500f76cdd28ce758d5d91fc7
treefec774dac04fc086200388402901746a4e6e4b6c
parentd7a6c1b0a5d74c37ada244880779750eda1a370e
sch_teql: should not dereference skb after ndo_start_xmit()

[ Upstream commit c0f84d0d4be3f7d818b4ffb04d27f9bae64397f0 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/sch_teql.c