diff options
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 4 | ||||
-rw-r--r-- | net/xfrm/xfrm_user.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index d83227baaa09..534b29eb46fe 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -221,7 +221,7 @@ EXPORT_SYMBOL(xfrm_policy_alloc); | |||
221 | 221 | ||
222 | /* Destroy xfrm_policy: descendant resources must be released to this moment. */ | 222 | /* Destroy xfrm_policy: descendant resources must be released to this moment. */ |
223 | 223 | ||
224 | void __xfrm_policy_destroy(struct xfrm_policy *policy) | 224 | void xfrm_policy_destroy(struct xfrm_policy *policy) |
225 | { | 225 | { |
226 | BUG_ON(!policy->dead); | 226 | BUG_ON(!policy->dead); |
227 | 227 | ||
@@ -233,7 +233,7 @@ void __xfrm_policy_destroy(struct xfrm_policy *policy) | |||
233 | security_xfrm_policy_free(policy); | 233 | security_xfrm_policy_free(policy); |
234 | kfree(policy); | 234 | kfree(policy); |
235 | } | 235 | } |
236 | EXPORT_SYMBOL(__xfrm_policy_destroy); | 236 | EXPORT_SYMBOL(xfrm_policy_destroy); |
237 | 237 | ||
238 | static void xfrm_policy_gc_kill(struct xfrm_policy *policy) | 238 | static void xfrm_policy_gc_kill(struct xfrm_policy *policy) |
239 | { | 239 | { |
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 6424e5360511..35fc16ae50ac 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -1043,7 +1043,7 @@ static struct xfrm_policy *xfrm_policy_construct(struct xfrm_userpolicy_info *p, | |||
1043 | return xp; | 1043 | return xp; |
1044 | error: | 1044 | error: |
1045 | *errp = err; | 1045 | *errp = err; |
1046 | kfree(xp); | 1046 | xfrm_policy_destroy(xp); |
1047 | return NULL; | 1047 | return NULL; |
1048 | } | 1048 | } |
1049 | 1049 | ||