Re: [PATCH] ipv6: assign rt6_info to inet6_ifaddr in init_loopback
From: David Miller <davem@davemloft.net>
Date: 2013-06-04 23:58:15
From: David Miller <davem@davemloft.net>
Date: 2013-06-04 23:58:15
From: Gao feng <redacted> Date: Mon, 3 Jun 2013 16:16:21 +0800
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 <redacted> Signed-off-by: Gao feng <redacted>
Applied and queued up for -stable, thanks!