Re: [PATCH v2 net 0/2] fix two kernel panics when disabled IPv6 on boot up

2019-02-07 Thread David Miller
From: Hangbin Liu Date: Thu, 7 Feb 2019 18:36:09 +0800 > When disabled IPv6 on boot up, since there is no ipv6 route tables, we should > not call rt6_lookup. Fix them by checking if we have inet6_dev pointer on > netdevice. > > v2: Fix idev reference leak, declarations and code mixing as Stefan

[PATCH v2 net 0/2] fix two kernel panics when disabled IPv6 on boot up

2019-02-07 Thread Hangbin Liu
When disabled IPv6 on boot up, since there is no ipv6 route tables, we should not call rt6_lookup. Fix them by checking if we have inet6_dev pointer on netdevice. v2: Fix idev reference leak, declarations and code mixing as Stefano, Eric pointed. Since we only want to check if idev exists and