# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2013/10/10934326
- Thread: https://ratatoskr.run/netdev/2013/09/10934241/t.md

```text
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.
```
