Skip to content

Commit fffc15a

Browse files
Fan Dudavem330
authored andcommitted
vxlan: release rt when found circular route
Otherwise causing dst memory leakage. Have Checked all other type tunnel device transmit implementation, no such things happens anymore. Signed-off-by: Fan Du <fan.du@windriver.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 12663bf commit fffc15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/vxlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ static void vxlan_xmit_one(struct sk_buff *skb, struct net_device *dev,
16681668
netdev_dbg(dev, "circular route to %pI4\n",
16691669
&dst->sin.sin_addr.s_addr);
16701670
dev->stats.collisions++;
1671-
goto tx_error;
1671+
goto rt_tx_error;
16721672
}
16731673

16741674
/* Bypass encapsulation if the destination is local */

0 commit comments

Comments
 (0)