diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/xfrm6_policy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index d7a5b8bc3770..97ab068e8ccc 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c | |||
@@ -50,12 +50,13 @@ static struct dst_entry *xfrm6_dst_lookup(struct net *net, int tos, | |||
50 | return dst; | 50 | return dst; |
51 | } | 51 | } |
52 | 52 | ||
53 | static int xfrm6_get_saddr(xfrm_address_t *saddr, xfrm_address_t *daddr) | 53 | static int xfrm6_get_saddr(struct net *net, |
54 | xfrm_address_t *saddr, xfrm_address_t *daddr) | ||
54 | { | 55 | { |
55 | struct dst_entry *dst; | 56 | struct dst_entry *dst; |
56 | struct net_device *dev; | 57 | struct net_device *dev; |
57 | 58 | ||
58 | dst = xfrm6_dst_lookup(&init_net, 0, NULL, daddr); | 59 | dst = xfrm6_dst_lookup(net, 0, NULL, daddr); |
59 | if (IS_ERR(dst)) | 60 | if (IS_ERR(dst)) |
60 | return -EHOSTUNREACH; | 61 | return -EHOSTUNREACH; |
61 | 62 | ||