Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ipv6: fix missing dst ref drop in ila lwtunnel

Add missing skb_dst_drop() to drop reference to the old dst before
adding the new dst to the skb.

Fixes: 79ff2fc31e0f ("ila: Cache a route to translated address")
Cc: Tom Herbert <tom@herbertland.com>
Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Link: https://patch.msgid.link/20250305081655.19032-1-justin.iurman@uliege.be
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Justin Iurman and committed by
Paolo Abeni
5da15a9c 0e7633d7

+1
+1
net/ipv6/ila/ila_lwt.c
··· 96 96 } 97 97 } 98 98 99 + skb_dst_drop(skb); 99 100 skb_dst_set(skb, dst); 100 101 return dst_output(net, sk, skb); 101 102