]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vxlan: Fix double free of skb.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 24 Dec 2014 00:20:36 +0000 (16:20 -0800)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 27 Apr 2015 20:48:35 +0000 (16:48 -0400)
commit754a19948ec440acc781d3870d48329c802a6eb7
tree5e72b9f3fe352d1eb8f0814152d61a1639b528dc
parenta67e2e88342accd49587d9bad72f6dabd7673f7c
vxlan: Fix double free of skb.

[ Upstream commit 74f47278cb056ffe1d261df3e094d608c3569829 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/vxlan.c