]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netem: fix possible skb leak
authorEric Dumazet <edumazet@google.com>
Sun, 29 Apr 2012 09:08:22 +0000 (09:08 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 May 2012 21:56:34 +0000 (22:56 +0100)
commitfd3cb5c9a9849761ae9830a098d414ef29ada82c
tree35246143c9f65bdc7263a5fdaee603bb9b821f73
parent3a7052c220cdbfe4e03baed0a5f32f97cbbb7ad7
netem: fix possible skb leak

[ Upstream commit 116a0fc31c6c9b8fc821be5a96e5bf0b43260131 ]

skb_checksum_help(skb) can return an error, we must free skb in this
case. qdisc_drop(skb, sch) can also be feeded with a NULL skb (if
skb_unshare() failed), so lets use this generic helper.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/sched/sch_netem.c