]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2013 23:57:41 +0000 (16:57 -0700)
commit0c80a42ffc62a2cb9792abbd73cca85dedc31cee
tree7558dd85f59c33145a0ac52596dd103392a53af4
parentaf589d531ea062bb25f5a5914e1c8f1b67939572
ipv6: assign rt6_info to inet6_ifaddr in init_loopback

Commit 44dcc024e117f7e4ea23e6cbe3d2c8f404805e8c
"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>
net/ipv6/addrconf.c