Commit 06e9d040 authored by Jiri Benc's avatar Jiri Benc Committed by David S. Miller
Browse files

ipv6: drop metadata dst in ip6_route_input

The fix in commit 48fb6b55 is incomplete, as now ip6_route_input can be
called with non-NULL dst if it's a metadata dst and the reference is leaked.
Drop the reference.

Fixes: 48fb6b55 ("ipv6: fix crash over flow-based vxlan device")
Fixes: ee122c79

 ("vxlan: Flow based tunneling")
CC: Wei-Chun Chao <>
CC: Thomas Graf <>
Signed-off-by: default avatarJiri Benc <>
Acked-by: default avatarThomas Graf <>
Signed-off-by: default avatarDavid S. Miller <>
parent 61adedf3
......@@ -1140,6 +1140,7 @@ void ip6_route_input(struct sk_buff *skb)
.flowi6_proto = iph->nexthdr,
skb_dst_set(skb, ip6_route_input_lookup(net, skb->dev, &fl6, flags));
Supports Markdown
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