From: Herbert Xu Date: Mon, 26 Sep 2005 22:10:16 +0000 (-0700) Subject: [IPV6]: Fix [Bug 5306] Oops on IPv6 route lookup X-Git-Tag: v3.12-rc1~41391^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c62dba9011b93fd88fde929848582b2a98309878;p=kernel%2Fkernel-generic.git [IPV6]: Fix [Bug 5306] Oops on IPv6 route lookup > 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 Acked-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 2fea3f4..4e509e5 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -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