]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: ignore null_entry in inet6_rtm_getroute() too
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 2 Mar 2017 04:48:39 +0000 (20:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Mar 2017 22:35:31 +0000 (14:35 -0800)
commit102bf17db8eac634f0c6246f1a64ad714fa23ae4
tree39d335f1130b0b52e605abefd04e8b55b1546f0b
parentd3bc4445a45e3ad5caa01a8c1dc2148e502930b6
ipv6: ignore null_entry in inet6_rtm_getroute() too

Like commit 824cc0b5e24f ("net: ipv6: ignore null_entry on route dumps"),
we need to ignore null entry in inet6_rtm_getroute() too.

Return -ENETUNREACH here to sync with IPv4 behavior, as suggested by David.

Fixes: a71dff64dc ("net: ipv6: Keep nexthop of multipath route on admin down")
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c