diff options
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index ecd9d91b30c6..2fb8d731026b 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -660,7 +660,7 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
660 | { .sport = inet->sport, | 660 | { .sport = inet->sport, |
661 | .dport = dport } } }; | 661 | .dport = dport } } }; |
662 | security_sk_classify_flow(sk, &fl); | 662 | security_sk_classify_flow(sk, &fl); |
663 | err = ip_route_output_flow(&rt, &fl, sk, 1); | 663 | err = ip_route_output_flow(&init_net, &rt, &fl, sk, 1); |
664 | if (err) { | 664 | if (err) { |
665 | if (err == -ENETUNREACH) | 665 | if (err == -ENETUNREACH) |
666 | IP_INC_STATS_BH(IPSTATS_MIB_OUTNOROUTES); | 666 | IP_INC_STATS_BH(IPSTATS_MIB_OUTNOROUTES); |