From: Herbert Xu Date: Tue, 11 Dec 2007 17:32:34 +0000 (-0800) Subject: [IPSEC]: Merge common code into xfrm_bundle_create X-Git-Tag: v2.6.25-rc1~1162^2~1451 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25ee3286dcbc830a833354bb1d15567956844813;p=pandora-kernel.git [IPSEC]: Merge common code into xfrm_bundle_create Half of the code in xfrm4_bundle_create and xfrm6_bundle_create are common. This patch extracts that logic and puts it into xfrm_bundle_create. The rest of it are then accessed through afinfo. As a result this fixes the problem with inter-family transforms where we treat every xfrm dst in the bundle as if it belongs to the top family. This patch also fixes a long-standing error-path bug where we may free the xfrm states twice. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed