diff options
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r-- | net/xfrm/xfrm_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 78338079b7f5..f971ca5645f8 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, | |||
1105 | return xp; | 1105 | return xp; |
1106 | error: | 1106 | error: |
1107 | *errp = err; | 1107 | *errp = err; |
1108 | xp->dead = 1; | ||
1108 | xfrm_policy_destroy(xp); | 1109 | xfrm_policy_destroy(xp); |
1109 | return NULL; | 1110 | return NULL; |
1110 | } | 1111 | } |