From: Eric Dumazet Date: Mon, 25 Jul 2022 20:05:54 +0000 (-0700) Subject: ip6mr: remove stray rcu_read_unlock() from ip6_mr_forward() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a7e555d4a184d7da72ed6df7d6741dc190b5ca5b;p=linux.git ip6mr: remove stray rcu_read_unlock() from ip6_mr_forward() 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 Signed-off-by: Eric Dumazet Reviewed-by: Vladimir Oltean Link: https://lore.kernel.org/r/20220725200554.2563581-1-eric.dumazet@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index d546fc09d8031..a9ba41648e368 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; - } } /*