vxlan: release rt when found circular route
authorFan Du <fan.du@windriver.com>
Mon, 9 Dec 2013 02:33:53 +0000 (10:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2014 23:31:34 +0000 (15:31 -0800)
commitce5bc6c999a45748b0e530769cd4623276984a86
treee51526cb1162281bb7e7fa7e9e54845a56d17e43
parenta84305bbc625fac01f8700c26d25c99f4d846c56
vxlan: release rt when found circular route

[ Upstream commit fffc15a5012e9052d3b236efc56840841a125416 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vxlan.c