aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/xfrm4_policy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c
index e1cf9ed07d49..2ad24ba31f9d 100644
--- a/net/ipv4/xfrm4_policy.c
+++ b/net/ipv4/xfrm4_policy.c
@@ -44,12 +44,13 @@ static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos,
44 return dst; 44 return dst;
45} 45}
46 46
47static int xfrm4_get_saddr(xfrm_address_t *saddr, xfrm_address_t *daddr) 47static int xfrm4_get_saddr(struct net *net,
48 xfrm_address_t *saddr, xfrm_address_t *daddr)
48{ 49{
49 struct dst_entry *dst; 50 struct dst_entry *dst;
50 struct rtable *rt; 51 struct rtable *rt;
51 52
52 dst = xfrm4_dst_lookup(&init_net, 0, NULL, daddr); 53 dst = xfrm4_dst_lookup(net, 0, NULL, daddr);
53 if (IS_ERR(dst)) 54 if (IS_ERR(dst))
54 return -EHOSTUNREACH; 55 return -EHOSTUNREACH;
55 56