Skip to content
Commit 41ab3e31 authored by Tommi Rantala's avatar Tommi Rantala Committed by David S. Miller
Browse files

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: default avatarTommi Rantala <tt.rantala@gmail.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6731d209
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment