From: Herbert Xu Date: Mon, 15 Feb 2010 19:24:30 +0000 (+0000) Subject: ipcomp: Avoid duplicate calls to ipcomp_destroy X-Git-Tag: v2.6.33~38^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10e7454ed7a2da39f1f6255f63d7df27ab4bb67f;p=pandora-kernel.git ipcomp: Avoid duplicate calls to ipcomp_destroy When ipcomp_tunnel_attach fails we will call ipcomp_destroy twice. This may lead to double-frees on certain structures. As there is no reason to explicitly call ipcomp_destroy, this patch removes it from ipcomp*.c and lets the standard xfrm_state destruction take place. This is based on the discovery and patch by Alexey Dobriyan. Tested-by: Alexey Dobriyan Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed