]> git.baikalelectronics.ru Git - kernel.git/commit
[IPSEC] flow: Fix potential memory leak
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 11 Jan 2007 06:06:32 +0000 (22:06 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 24 Jan 2007 04:25:39 +0000 (20:25 -0800)
commit7a11da58164ac35485617c39224966500234c327
tree545e9985c6fc2e9b7e1a9019ce48ce05b848d0d6
parentb34b5aaf00c2650ddd96dffec651af8ca31d4340
[IPSEC] flow: Fix potential memory leak

When old flow cache entries that are not at the head of their chain
trigger a transient security error they get unlinked along with all
the entries preceding them in the chain.  The preceding entries are
not freed correctly.

This patch fixes this by simply leaving the entry around.  It's based
on a suggestion by Venkat Yekkirala.

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