]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6/route: return if there is no fib_nh_gw_family
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 20 Nov 2019 07:39:06 +0000 (15:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 20:17:39 +0000 (12:17 -0800)
commitc78ec67fa003c0a0c7312860a0c457212748136c
tree4194d15b060d806905c5d743754a4a29cf1e1450
parentf20a305eb1220e1e7c773eb227848f8f6df08ebc
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 a5959a6521b8
("ipv6: Change rt6_probe to take a fib6_nh"), the logic changed to
return if there is fib_nh_gw_family.

Fixes: a5959a6521b8 ("ipv6: Change rt6_probe to take a fib6_nh")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c