]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commite0e8f1c8220c43bdf25cfb5622f6ab6947027fb1
tree545e9985c6fc2e9b7e1a9019ce48ce05b848d0d6
parent419dd8378dfa32985672ab7927b4bc827f33b332
[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