vxlan: Fix double free of skb.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 24 Dec 2014 00:20:36 +0000 (16:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Dec 2014 04:57:31 +0000 (23:57 -0500)
commit74f47278cb056ffe1d261df3e094d608c3569829
treef3db0334e66ecad72af35d47efac4f1a24edb736
parent997e068ebc17d8d57e735578df44b6341cd5f2f3
vxlan: Fix double free of skb.

In case of error vxlan_xmit_one() can free already freed skb.
Also fixes memory leak of dst-entry.

Fixes: acbf74a7630 ("vxlan: Refactor vxlan driver to make use
of the common UDP tunnel functions").

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c