l2tp: fix a potential skb leak in l2tp_xmit_skb()
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 7 Oct 2011 05:35:46 +0000 (05:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 03:32:00 +0000 (23:32 -0400)
commit835acf5da239b91edb9f7ebe36516999e156e6ee
tree619c14b343ef06c4a9e243f030930983b15530ab
parent1ce5cce895309862d2c35d922816adebe094fe4a
l2tp: fix a potential skb leak in l2tp_xmit_skb()

l2tp_xmit_skb() can leak one skb if skb_cow_head() returns an error.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c