]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: ipv6: fix missing dst ref drop in ila lwtunnel
authorJustin Iurman <justin.iurman@uliege.be>
Wed, 5 Mar 2025 08:16:55 +0000 (09:16 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 6 Mar 2025 10:08:45 +0000 (11:08 +0100)
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>
net/ipv6/ila/ila_lwt.c

index ac4bcc623603ab269e9af40501a05c0587184faf..7d574f5132e2fb893863b0eef7ef1704010a04dd 100644 (file)
@@ -96,6 +96,7 @@ static int ila_output(struct net *net, struct sock *sk, struct sk_buff *skb)
                }
        }
 
+       skb_dst_drop(skb);
        skb_dst_set(skb, dst);
        return dst_output(net, sk, skb);