aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r--net/xfrm/xfrm_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index 65cdaa5c2280..765c01e784e9 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -1080,7 +1080,7 @@ static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_i
1080 1080
1081static struct xfrm_policy *xfrm_policy_construct(struct xfrm_userpolicy_info *p, struct nlattr **attrs, int *errp) 1081static struct xfrm_policy *xfrm_policy_construct(struct xfrm_userpolicy_info *p, struct nlattr **attrs, int *errp)
1082{ 1082{
1083 struct xfrm_policy *xp = xfrm_policy_alloc(GFP_KERNEL); 1083 struct xfrm_policy *xp = xfrm_policy_alloc(&init_net, GFP_KERNEL);
1084 int err; 1084 int err;
1085 1085
1086 if (!xp) { 1086 if (!xp) {
@@ -2291,7 +2291,7 @@ static struct xfrm_policy *xfrm_compile_policy(struct sock *sk, int opt,
2291 if (p->dir > XFRM_POLICY_OUT) 2291 if (p->dir > XFRM_POLICY_OUT)
2292 return NULL; 2292 return NULL;
2293 2293
2294 xp = xfrm_policy_alloc(GFP_KERNEL); 2294 xp = xfrm_policy_alloc(&init_net, GFP_KERNEL);
2295 if (xp == NULL) { 2295 if (xp == NULL) {
2296 *dir = -ENOBUFS; 2296 *dir = -ENOBUFS;
2297 return NULL; 2297 return NULL;