Skip to content

Commit 004b394

Browse files
liuhangbindavem330
authored andcommitted
ipv6/route: return if there is no fib_nh_gw_family
Previously we will return directly if (!rt || !rt->fib6_nh.fib_nh_gw_family) in function rt6_probe(), but after commit cc3a86c ("ipv6: Change rt6_probe to take a fib6_nh"), the logic changed to return if there is fib_nh_gw_family. Fixes: cc3a86c ("ipv6: Change rt6_probe to take a fib6_nh") Signed-off-by: Hangbin Liu <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b8eb718 commit 004b394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/route.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ static void rt6_probe(struct fib6_nh *fib6_nh)
634634
* Router Reachability Probe MUST be rate-limited
635635
* to no more than one per minute.
636636
*/
637-
if (fib6_nh->fib_nh_gw_family)
637+
if (!fib6_nh->fib_nh_gw_family)
638638
return;
639639

640640
nh_gw = &fib6_nh->fib_nh_gw6;

0 commit comments

Comments
 (0)