Skip to content

Commit

Permalink
net: ipv6: fix missing dst ref drop in ila lwtunnel
Browse files Browse the repository at this point in the history
Add missing skb_dst_drop() to drop reference to the old dst before
adding the new dst to the skb.

Fixes: 79ff2fc ("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>
  • Loading branch information
Justin Iurman authored and Paolo Abeni committed Mar 6, 2025
1 parent 0e7633d commit 5da15a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv6/ila/ila_lwt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5da15a9

Please sign in to comment.