Message ID | tencent_0D7FA5355C7998793C100B23@qq.com |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
--- net/xfrm/xfrm_policy.c_old 2014-02-10 10:18:28.421504317 +0800 +++ net/xfrm/xfrm_policy.c 2014-02-10 10:19:01.661503334 +0800 @@ -330,7 +330,6 @@ static void xfrm_queue_purge(struct sk_b static void xfrm_policy_kill(struct xfrm_policy *policy) { - policy->walk.dead = 1; atomic_inc(&policy->genid); @@ -1156,6 +1155,7 @@ static struct xfrm_policy *__xfrm_policy if (hlist_unhashed(&pol->bydst)) return NULL; + pol->walk.dead = 1; hlist_del(&pol->bydst); hlist_del(&pol->byidx); list_del(&pol->walk.all);