]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6/ip6_gre: fix error case handling in ip6gre_tunnel_xmit()
authorTommi Rantala <tt.rantala@gmail.com>
Wed, 6 Feb 2013 03:24:02 +0000 (03:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Feb 2013 21:02:05 +0000 (16:02 -0500)
commit06fb8e7cd82f9185120c83c2804eb8a4ad776c7d
treec3eb42cb9cdb497b6dd00524f4002adfa0975838
parent8bb6a820d14218b4542a53a35c2b5f81e99828e0
ipv6/ip6_gre: fix error case handling in ip6gre_tunnel_xmit()

ip6gre_tunnel_xmit() is leaking the skb when we hit this error branch,
and the -1 return value from this function is bogus. Use the error
handling we already have in place in ip6gre_tunnel_xmit() for this error
case to fix this.

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c