diff options
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 971ab0253a0..c75fc20b07e 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2533,11 +2533,12 @@ static int ipv4_dst_blackhole(struct rtable **rp, struct flowi *flp, struct sock | |||
2533 | return (rt ? 0 : -ENOMEM); | 2533 | return (rt ? 0 : -ENOMEM); |
2534 | } | 2534 | } |
2535 | 2535 | ||
2536 | int ip_route_output_flow(struct rtable **rp, struct flowi *flp, struct sock *sk, int flags) | 2536 | int ip_route_output_flow(struct net *net, struct rtable **rp, struct flowi *flp, |
2537 | struct sock *sk, int flags) | ||
2537 | { | 2538 | { |
2538 | int err; | 2539 | int err; |
2539 | 2540 | ||
2540 | if ((err = __ip_route_output_key(&init_net, rp, flp)) != 0) | 2541 | if ((err = __ip_route_output_key(net, rp, flp)) != 0) |
2541 | return err; | 2542 | return err; |
2542 | 2543 | ||
2543 | if (flp->proto) { | 2544 | if (flp->proto) { |
@@ -2560,7 +2561,7 @@ EXPORT_SYMBOL_GPL(ip_route_output_flow); | |||
2560 | 2561 | ||
2561 | int ip_route_output_key(struct rtable **rp, struct flowi *flp) | 2562 | int ip_route_output_key(struct rtable **rp, struct flowi *flp) |
2562 | { | 2563 | { |
2563 | return ip_route_output_flow(rp, flp, NULL, 0); | 2564 | return ip_route_output_flow(&init_net, rp, flp, NULL, 0); |
2564 | } | 2565 | } |
2565 | 2566 | ||
2566 | 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, |