Message ID | 20230516052405.2677554-3-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 94b95dfaa814f565d92f5a65f0ff12a483095522 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/7] xfrm: don't check the default policy if the policy allows the packet | expand |
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 103af2b3e986..af8fbcbfbe69 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -1978,6 +1978,7 @@ static int xfrm_add_policy(struct sk_buff *skb, struct nlmsghdr *nlh, if (err) { xfrm_dev_policy_delete(xp); + xfrm_dev_policy_free(xp); security_xfrm_policy_free(xp->security); kfree(xp); return err;