ipv6: assign rt6_info to inet6_ifaddr in init_loopback
authorGao feng <gaofeng@cn.fujitsu.com>
Sun, 2 Jun 2013 22:16:21 +0000 (22:16 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 29 Jun 2013 03:06:40 +0000 (04:06 +0100)
commit192b2d2a8319dbfa1b7b57d4cc873b09ada9f507
treea8e2e77f95ecd8868cabca102eda8d0e65ea64cc
parent9fb13f7e3023941beb41536f399c065acdb4a1a6
ipv6: assign rt6_info to inet6_ifaddr in init_loopback

[ Upstream commit 534c877928a16ae5f9776436a497109639bf67dc ]

Commit 25fb6ca4ed9cad72f14f61629b68dc03c0d9713f
"net IPv6 : Fix broken IPv6 routing table after loopback down-up"
forgot to assign rt6_info to the inet6_ifaddr.
When disable the net device, the rt6_info which allocated
in init_loopback will not be destroied in __ipv6_ifa_notify.

This will trigger the waring message below
[23527.916091] unregister_netdevice: waiting for tap0 to become free. Usage count = 1

Reported-by: Arkadiusz Miskiewicz <a.miskiewicz@gmail.com>
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv6/addrconf.c