aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-04-29 05:08:22 -0400
committerLuis Henriques <luis.henriques@canonical.com>2012-05-25 12:24:44 -0400
commit267f095486dd0eca48facb2bf795b54bd11e9eaf (patch)
tree441f532b4888125c61913e745cefaf4df3235db5 /drivers/net/sky2.c
parent810b0ae772d97a16d3d08728f1fdb0f6d5f99280 (diff)
netem: fix possible skb leak
BugLink: http://bugs.launchpad.net/bugs/1002880 [ 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> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'drivers/net/sky2.c')
0 files changed, 0 insertions, 0 deletions