]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xfrm: Fix xfrm_state_clone leak
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 15 Feb 2010 20:00:51 +0000 (20:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2010 22:53:24 +0000 (14:53 -0800)
commit553f9118abc4fc53674fff87f6fe5fa3f56a41ed
tree8b6fcbbfc3709915cc733aa48a49f95d9f930e89
parent10e7454ed7a2da39f1f6255f63d7df27ab4bb67f
xfrm: Fix xfrm_state_clone leak

xfrm_state_clone calls kfree instead of xfrm_state_put to free
a failed state.  Depending on the state of the failed state, it
can cause leaks to things like module references.

All states should be freed by xfrm_state_put past the point of
xfrm_init_state.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_state.c