In article <[EMAIL PROTECTED]> (at Thu, 14 Feb 2008 20:55:40 +0900), Kazunori MIYAZAWA <[EMAIL PROTECTED]> says:
> This patch fix a BUG when adding spds which have > same selector. > > Signed-off-by: Kazunori MIYAZAWA <[EMAIL PROTECTED]> I think we need to fix xfrm_user side as well. --- [PATCH] [XFRM]: Avoid bogus BUG() when throwing new policy away. When we destory a new policy entry, we need to tell xfrm_policy_destroy() explicitly that the entry is not alive yet. --- diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 7833807..f971ca5 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -1105,6 +1105,7 @@ static struct xfrm_policy *xfrm_policy_construct(struct xfrm_userpolicy_info *p, return xp; error: *errp = err; + xp->dead = 1; xfrm_policy_destroy(xp); return NULL; } -- YOSHIFUJI Hideaki @ USAGI Project <[EMAIL PROTECTED]> GPG-FP : 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html