Skip to content

Commit

Permalink
[IPV6]: Fix [Bug 5306] Oops on IPv6 route lookup
Browse files Browse the repository at this point in the history
> Steps to reproduce:
> 1. Boot Linux, do NOT setup any IPv6 routes
> 2. ip route get 2001::1 (or any unroutable address)

Well caught.  We never set rt6i_idev on ip6_null_entry.
This patch should make the problem go away.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Sep 26, 2005
1 parent acd042b commit c62dba9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3520,6 +3520,8 @@ int __init addrconf_init(void)
if (err)
return err;

ip6_null_entry.rt6i_idev = in6_dev_get(&loopback_dev);

register_netdevice_notifier(&ipv6_dev_notf);

#ifdef CONFIG_IPV6_PRIVACY
Expand Down

0 comments on commit c62dba9

Please sign in to comment.