diff options
Diffstat (limited to 'net/key/af_key.c')
-rw-r--r-- | net/key/af_key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index 5b22e011653b..bde8aad4cc93 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -1122,7 +1122,7 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct sadb_msg *hdr, | |||
1122 | (key->sadb_key_bits+7) / 8 > key->sadb_key_len * sizeof(uint64_t))) | 1122 | (key->sadb_key_bits+7) / 8 > key->sadb_key_len * sizeof(uint64_t))) |
1123 | return ERR_PTR(-EINVAL); | 1123 | return ERR_PTR(-EINVAL); |
1124 | 1124 | ||
1125 | x = xfrm_state_alloc(); | 1125 | x = xfrm_state_alloc(&init_net); |
1126 | if (x == NULL) | 1126 | if (x == NULL) |
1127 | return ERR_PTR(-ENOBUFS); | 1127 | return ERR_PTR(-ENOBUFS); |
1128 | 1128 | ||