diff options
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r-- | net/xfrm/xfrm_user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 4e0546e9bb0a..840cc8d9fbe4 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -2137,6 +2137,7 @@ static int xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh, | |||
2137 | u8 type; | 2137 | u8 type; |
2138 | int err; | 2138 | int err; |
2139 | int n = 0; | 2139 | int n = 0; |
2140 | struct net *net = sock_net(skb->sk); | ||
2140 | 2141 | ||
2141 | if (attrs[XFRMA_MIGRATE] == NULL) | 2142 | if (attrs[XFRMA_MIGRATE] == NULL) |
2142 | return -EINVAL; | 2143 | return -EINVAL; |
@@ -2154,7 +2155,7 @@ static int xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh, | |||
2154 | if (!n) | 2155 | if (!n) |
2155 | return 0; | 2156 | return 0; |
2156 | 2157 | ||
2157 | xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp); | 2158 | xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp, net); |
2158 | 2159 | ||
2159 | return 0; | 2160 | return 0; |
2160 | } | 2161 | } |