# Re: \[PATCH 1/2\] ipv4 igmp: use in\_dev\_put in timer handlers instead of \_\_in\_dev\_put

- From: David Miller \<davem@davemloft.net\>
- Date: 2013-10-01 05:23:12 
- List: netdev
- Page: https://ratatoskr.run/netdev/2013/10/10934325
- Thread: https://ratatoskr.run/netdev/2013/09/10934240/t.md

```text
From: Salam Noureddine <redacted>
Date: Sun, 29 Sep 2013 13:39:42 -0700

> It is possible for the timer handlers to run after the call to
> ip_mc_down so use in_dev_put instead of __in_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 in_device 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.
```
