xfrm: Fix xfrm_state_migrate leak
authorThomas Egerer <thomas.egerer@secunet.com>
Mon, 6 Dec 2010 23:28:56 +0000 (23:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Dec 2010 04:35:27 +0000 (20:35 -0800)
commit78347c8c6b2ddf20535bc1b18d749a3bbdea2a60
tree2aa2048f11a93c4319b023e938eee387d19c96f4
parentfb4fa76a1fa59340154c42d998d700e1f8bf21e0
xfrm: Fix xfrm_state_migrate leak

xfrm_state_migrate calls kfree instead of xfrm_state_put to free
a failed state. According to git commit 553f9118 this can cause
memory leaks.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_state.c