diff options
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index c75fc20b07e2..39a40342142f 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2559,9 +2559,9 @@ int ip_route_output_flow(struct net *net, struct rtable **rp, struct flowi *flp, | |||
2559 | 2559 | ||
2560 | EXPORT_SYMBOL_GPL(ip_route_output_flow); | 2560 | EXPORT_SYMBOL_GPL(ip_route_output_flow); |
2561 | 2561 | ||
2562 | int ip_route_output_key(struct rtable **rp, struct flowi *flp) | 2562 | int ip_route_output_key(struct net *net, struct rtable **rp, struct flowi *flp) |
2563 | { | 2563 | { |
2564 | return ip_route_output_flow(&init_net, rp, flp, NULL, 0); | 2564 | return ip_route_output_flow(net, rp, flp, NULL, 0); |
2565 | } | 2565 | } |
2566 | 2566 | ||
2567 | static int rt_fill_info(struct sk_buff *skb, u32 pid, u32 seq, int event, | 2567 | static int rt_fill_info(struct sk_buff *skb, u32 pid, u32 seq, int event, |
@@ -2728,7 +2728,7 @@ static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void | |||
2728 | }, | 2728 | }, |
2729 | .oif = tb[RTA_OIF] ? nla_get_u32(tb[RTA_OIF]) : 0, | 2729 | .oif = tb[RTA_OIF] ? nla_get_u32(tb[RTA_OIF]) : 0, |
2730 | }; | 2730 | }; |
2731 | err = ip_route_output_key(&rt, &fl); | 2731 | err = ip_route_output_key(&init_net, &rt, &fl); |
2732 | } | 2732 | } |
2733 | 2733 | ||
2734 | if (err) | 2734 | if (err) |