On Sun, Jul 23, 2017 at 8:09 PM, Hangbin Liu <liuhang...@gmail.com> wrote: > Do we still need this net->ipv6.ip6_null_entry check? How about remove all > the checks?
I believe you only need to check for rt->dst.error, no need to check against NULL or ip6_null_entry. Take a look at other ip6_route_lookup() callers.