diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-10-19 00:39:18 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-19 03:50:47 -0700 |
commit | 9e917dca74138cccf398ce8bb924c7fd2980ec1d (patch) | |
tree | 9aeaa145a5a2b4a513a814eb41f05bd2446ddfe5 /net/ipv4/fib_frontend.c | |
parent | 5d6076bb2e642bbcb1263c6cf239b9a1f3d0df08 (diff) | |
download | linux-3.10-9e917dca74138cccf398ce8bb924c7fd2980ec1d.tar.gz linux-3.10-9e917dca74138cccf398ce8bb924c7fd2980ec1d.tar.bz2 linux-3.10-9e917dca74138cccf398ce8bb924c7fd2980ec1d.zip |
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>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 3df057e8964..36e27c2107d 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -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) { |