]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: don't call addrconf_dst_alloc again when enable lo
authorGao feng <gaofeng@cn.fujitsu.com>
Sun, 16 Jun 2013 03:14:30 +0000 (11:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jun 2013 06:04:50 +0000 (23:04 -0700)
commitd2ee8056e66faa3d4ef2238636df2f7c861e8eae
treea005138027964c7e1a3c4402c84bbb8b07247123
parent59881f1394e2b2e6734468a76bf24cf3326e8042
ipv6: don't call addrconf_dst_alloc again when enable lo

If we disable all of the net interfaces, and enable
un-lo interface before lo interface, we already allocated
the addrconf dst in ipv6_add_addr. So we shouldn't allocate
it again when we enable lo interface.

Otherwise the message below will be triggered.
unregister_netdevice: waiting for sit1 to become free. Usage count = 1

This problem is introduced by commit 44dcc024e117f7e4ea23e6cbe3d2c8f404805e8c
"net IPv6 : Fix broken IPv6 routing table after loopback down-up"

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c