Message ID | 20220725200554.2563581-1-eric.dumazet@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | a7e555d4a184d7da72ed6df7d6741dc190b5ca5b |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] ip6mr: remove stray rcu_read_unlock() from ip6_mr_forward() | expand |
On Mon, Jul 25, 2022 at 01:05:54PM -0700, Eric Dumazet wrote: > From: Eric Dumazet <edumazet@google.com> > > One rcu_read_unlock() should have been removed in blamed commit. > > Fixes: 9b1c21d898fd ("ip6mr: do not acquire mrt_lock while calling ip6_mr_forward()") > Reported-by: Vladimir Oltean <olteanv@gmail.com> > Signed-off-by: Eric Dumazet <edumazet@google.com> > --- Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <kuba@kernel.org>: On Mon, 25 Jul 2022 13:05:54 -0700 you wrote: > From: Eric Dumazet <edumazet@google.com> > > One rcu_read_unlock() should have been removed in blamed commit. > > Fixes: 9b1c21d898fd ("ip6mr: do not acquire mrt_lock while calling ip6_mr_forward()") > Reported-by: Vladimir Oltean <olteanv@gmail.com> > Signed-off-by: Eric Dumazet <edumazet@google.com> > > [...] Here is the summary with links: - [net-next] ip6mr: remove stray rcu_read_unlock() from ip6_mr_forward() https://git.kernel.org/netdev/net-next/c/a7e555d4a184 You are awesome, thank you!
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index d546fc09d80310f20488a6627bf782c067a80fa6..a9ba41648e36854fe1702a3397a36a366be4c682 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c @@ -2133,10 +2133,8 @@ static void ip6_mr_forward(struct net *net, struct mr_table *mrt, */ cache_proxy = mr_mfc_find_any_parent(mrt, vif); if (cache_proxy && - cache_proxy->_c.mfc_un.res.ttls[true_vifi] < 255) { - rcu_read_unlock(); + cache_proxy->_c.mfc_un.res.ttls[true_vifi] < 255) goto forward; - } } /*