]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:18 +0000 (09:32 -0700)
commit51cfc3b6927a21512fddeb3ab07065295657fde8
tree86f9bd9fb32e9f965ad20737db7312384204abac
parent7a519993790a09fd6410bdeb0a049e96d11a2324
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_netem.c