Message ID | 52A562EB.9050606@windriver.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Fan Du <fan.du@windriver.com> Date: Mon, 9 Dec 2013 14:27:55 +0800 > From: Fan Du <fan.du@windriver.com> > Date: Mon, 9 Dec 2013 10:33:53 +0800 > Subject: [PATCHv2 net] 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> > --- > v2: use rt_tx_error label to release rt. Applied and queued up for -stable, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 0358c07..249e01c 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -1668,7 +1668,7 @@ static void vxlan_xmit_one(struct sk_buff *skb, struct net_device *dev, netdev_dbg(dev, "circular route to %pI4\n", &dst->sin.sin_addr.s_addr); dev->stats.collisions++; - goto tx_error; + goto rt_tx_error; } /* Bypass encapsulation if the destination is local */