diff options
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r-- | net/xfrm/xfrm_user.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index cdd9e9c7ff0e..8f131c10a6f3 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -1246,7 +1246,7 @@ static int copy_from_user_sec_ctx(struct xfrm_policy *pol, struct nlattr **attrs | |||
1246 | return 0; | 1246 | return 0; |
1247 | 1247 | ||
1248 | uctx = nla_data(rt); | 1248 | uctx = nla_data(rt); |
1249 | return security_xfrm_policy_alloc(&pol->security, uctx); | 1249 | return security_xfrm_policy_alloc(&pol->security, uctx, GFP_KERNEL); |
1250 | } | 1250 | } |
1251 | 1251 | ||
1252 | static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, | 1252 | static void copy_templates(struct xfrm_policy *xp, struct xfrm_user_tmpl *ut, |
@@ -1651,7 +1651,7 @@ static int xfrm_get_policy(struct sk_buff *skb, struct nlmsghdr *nlh, | |||
1651 | if (rt) { | 1651 | if (rt) { |
1652 | struct xfrm_user_sec_ctx *uctx = nla_data(rt); | 1652 | struct xfrm_user_sec_ctx *uctx = nla_data(rt); |
1653 | 1653 | ||
1654 | err = security_xfrm_policy_alloc(&ctx, uctx); | 1654 | err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); |
1655 | if (err) | 1655 | if (err) |
1656 | return err; | 1656 | return err; |
1657 | } | 1657 | } |
@@ -1953,7 +1953,7 @@ static int xfrm_add_pol_expire(struct sk_buff *skb, struct nlmsghdr *nlh, | |||
1953 | if (rt) { | 1953 | if (rt) { |
1954 | struct xfrm_user_sec_ctx *uctx = nla_data(rt); | 1954 | struct xfrm_user_sec_ctx *uctx = nla_data(rt); |
1955 | 1955 | ||
1956 | err = security_xfrm_policy_alloc(&ctx, uctx); | 1956 | err = security_xfrm_policy_alloc(&ctx, uctx, GFP_KERNEL); |
1957 | if (err) | 1957 | if (err) |
1958 | return err; | 1958 | return err; |
1959 | } | 1959 | } |