]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ipv6-fixes'
authorDavid S. Miller <davem@davemloft.net>
Thu, 7 Feb 2019 18:48:42 +0000 (10:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Feb 2019 18:48:42 +0000 (10:48 -0800)
commitca4b43e30788defb9106ee2b01165bf28ce0f766
tree79016b006cd80fb1139261887c3f80eda1849f9c
parentae20a224fab886431a8a9696ec281e1b6923622d
parenta92e2a86cc1335c5e817fd4bfc0cd7b1d61eade9
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 <davem@davemloft.net>