aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/icmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r--net/ipv6/icmp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
index 9554b99a8508..4527285fcaa2 100644
--- a/net/ipv6/icmp.c
+++ b/net/ipv6/icmp.c
@@ -446,6 +446,8 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)
446 446
447 if (__ipv6_addr_needs_scope_id(addr_type)) 447 if (__ipv6_addr_needs_scope_id(addr_type))
448 iif = skb->dev->ifindex; 448 iif = skb->dev->ifindex;
449 else
450 iif = l3mdev_master_ifindex(skb->dev);
449 451
450 /* 452 /*
451 * Must not send error if the source does not uniquely 453 * Must not send error if the source does not uniquely
@@ -500,9 +502,6 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)
500 else if (!fl6.flowi6_oif) 502 else if (!fl6.flowi6_oif)
501 fl6.flowi6_oif = np->ucast_oif; 503 fl6.flowi6_oif = np->ucast_oif;
502 504
503 if (!fl6.flowi6_oif)
504 fl6.flowi6_oif = l3mdev_master_ifindex(skb->dev);
505
506 dst = icmpv6_route_lookup(net, skb, sk, &fl6); 505 dst = icmpv6_route_lookup(net, skb, sk, &fl6);
507 if (IS_ERR(dst)) 506 if (IS_ERR(dst))
508 goto out; 507 goto out;