Re: [PATCH 2/2] ipv6 mcast: use in6_dev_put in timer handlers instead of __in6_dev_put

From
David Miller <davem@davemloft.net>
Date
2013-10-01 05:23:20
Reply to
Salam Noureddine, 2013-09-29
From: Salam Noureddine <redacted>
Date: Sun, 29 Sep 2013 13:41:34 -0700
It is possible for the timer handlers to run after the call to
ipv6_mc_down so use in6_dev_put instead of __in6_dev_put in the
handler function in order to do proper cleanup when the refcnt
reaches 0. Otherwise, the refcnt can reach zero without the
inet6_dev being destroyed and we end up leaking a reference to
the net_device and see messages like the following,

unregister_netdevice: waiting for eth0 to become free. Usage count = 1

Tested on linux-3.4.43.

Signed-off-by: Salam Noureddine <redacted>
Applied and queued up for -stable.
Thread (2 messages) 2 messages, 2 authors, last reply 2013-10-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help