From: David S. Miller Date: Thu, 7 Feb 2019 18:48:42 +0000 (-0800) Subject: Merge branch 'ipv6-fixes' X-Git-Tag: v5.0-rc6~19^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ec7fd009e87cf5459fe9aef1c9a6111e093e49cd;p=users%2Fjedix%2Flinux-maple.git Merge branch 'ipv6-fixes' Hangbin Liu says: ==================== fix two kernel panics when disabled IPv6 on boot up 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 not reference it, use __in6_dev_get() insteand of in6_dev_get(). ==================== Signed-off-by: David S. Miller --- ec7fd009e87cf5459fe9aef1c9a6111e093e49cd