|
@@ -1158,7 +1158,7 @@ static struct xfrm_policy *__xfrm_policy_unlink(struct xfrm_policy *pol,
|
|
if (hlist_unhashed(&pol->bydst))
|
|
if (hlist_unhashed(&pol->bydst))
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
- hlist_del(&pol->bydst);
|
|
|
|
|
|
+ hlist_del_init(&pol->bydst);
|
|
hlist_del(&pol->byidx);
|
|
hlist_del(&pol->byidx);
|
|
list_del(&pol->walk.all);
|
|
list_del(&pol->walk.all);
|
|
net->xfrm.policy_count[dir]--;
|
|
net->xfrm.policy_count[dir]--;
|