net: avoid a dev refcount in ip_mc_find_dev()
We hold RTNL in ip_mc_find_dev(), no need to touch device refcount. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5d6076bb2e
commit
9e917dca74
@@ -153,7 +153,7 @@ static void fib_flush(struct net *net)
|
||||
* @addr: the source address
|
||||
* @devref: if true, take a reference on the found device
|
||||
*
|
||||
* If a caller uses devref=false, it should be protected by RCU
|
||||
* If a caller uses devref=false, it should be protected by RCU, or RTNL
|
||||
*/
|
||||
struct net_device *__ip_dev_find(struct net *net, __be32 addr, bool devref)
|
||||
{
|
||||
|
Reference in New Issue
Block a user