diff options
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index ac32d8f3d68f..f6730d94e307 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2309,8 +2309,8 @@ skip_cache: | |||
2309 | struct in_device *in_dev = __in_dev_get_rcu(dev); | 2309 | struct in_device *in_dev = __in_dev_get_rcu(dev); |
2310 | 2310 | ||
2311 | if (in_dev) { | 2311 | if (in_dev) { |
2312 | int our = ip_check_mc(in_dev, daddr, saddr, | 2312 | int our = ip_check_mc_rcu(in_dev, daddr, saddr, |
2313 | ip_hdr(skb)->protocol); | 2313 | ip_hdr(skb)->protocol); |
2314 | if (our | 2314 | if (our |
2315 | #ifdef CONFIG_IP_MROUTE | 2315 | #ifdef CONFIG_IP_MROUTE |
2316 | || | 2316 | || |
@@ -2368,8 +2368,8 @@ static struct rtable *__mkroute_output(const struct fib_result *res, | |||
2368 | fi = NULL; | 2368 | fi = NULL; |
2369 | } else if (type == RTN_MULTICAST) { | 2369 | } else if (type == RTN_MULTICAST) { |
2370 | flags |= RTCF_MULTICAST | RTCF_LOCAL; | 2370 | flags |= RTCF_MULTICAST | RTCF_LOCAL; |
2371 | if (!ip_check_mc(in_dev, oldflp->fl4_dst, oldflp->fl4_src, | 2371 | if (!ip_check_mc_rcu(in_dev, oldflp->fl4_dst, oldflp->fl4_src, |
2372 | oldflp->proto)) | 2372 | oldflp->proto)) |
2373 | flags &= ~RTCF_LOCAL; | 2373 | flags &= ~RTCF_LOCAL; |
2374 | /* If multicast route do not exist use | 2374 | /* If multicast route do not exist use |
2375 | * default one, but do not gateway in this case. | 2375 | * default one, but do not gateway in this case. |