summaryrefslogtreecommitdiff
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2014-07-15 17:52:21 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-07-15 17:52:21 +1000
commitc3139c0af3d28c219c11dc216d1e7b4d4724a095 (patch)
treeb93bc3d0e0e1713bc9babe643a7aa5fbb0fb2363 /net/xfrm/xfrm_policy.c
parent3d7295b32267d682d2060e7afd3036dee6c3ae13 (diff)
parent7407621ec9e00da2298c4b5fff4c73de44f99e40 (diff)
Merge branch 'akpm-current/current'
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r--net/xfrm/xfrm_policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 0525d78ba328..beeed602aeb3 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -389,7 +389,7 @@ redo:
if (h != h0)
continue;
hlist_del(&pol->bydst);
- hlist_add_after(entry0, &pol->bydst);
+ hlist_add_behind(&pol->bydst, entry0);
}
entry0 = &pol->bydst;
}
@@ -654,7 +654,7 @@ int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl)
break;
}
if (newpos)
- hlist_add_after(newpos, &policy->bydst);
+ hlist_add_behind(&policy->bydst, newpos);
else
hlist_add_head(&policy->bydst, chain);
xfrm_pol_hold(policy);