summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6mr.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-06-23 04:34:46 +0000
committerDavid S. Miller <davem@davemloft.net>2022-06-24 11:34:38 +0100
commit194366b28b8306b7a24596c57c09635ab2891252 (patch)
treea149fa59a5f11cd1274f15eff2818a2a767e5456 /net/ipv6/ip6mr.c
parent6fa40a29021976c91b6ad720285bdfd4410aaa34 (diff)
downloadlinux-stable-194366b28b8306b7a24596c57c09635ab2891252.tar.gz
linux-stable-194366b28b8306b7a24596c57c09635ab2891252.tar.bz2
linux-stable-194366b28b8306b7a24596c57c09635ab2891252.zip
ipmr: adopt rcu_read_lock() in mr_dump()
We no longer need to acquire mrt_lock() in mr_dump, using rcu_read_lock() is enough. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r--net/ipv6/ip6mr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 08ac177fe30c..f0a9bceb8e3c 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -1267,7 +1267,7 @@ static int ip6mr_dump(struct net *net, struct notifier_block *nb,
struct netlink_ext_ack *extack)
{
return mr_dump(net, nb, RTNL_FAMILY_IP6MR, ip6mr_rules_dump,
- ip6mr_mr_table_iter, &mrt_lock, extack);
+ ip6mr_mr_table_iter, extack);
}
static struct notifier_block ip6_mr_notifier = {