Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <olteanv@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20220725200554.2563581-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Eric Dumazet and committed by
Jakub Kicinski
a7e555d4 48c022d1

+1 -3
+1 -3
net/ipv6/ip6mr.c
··· 2133 2133 */ 2134 2134 cache_proxy = mr_mfc_find_any_parent(mrt, vif); 2135 2135 if (cache_proxy && 2136 - cache_proxy->_c.mfc_un.res.ttls[true_vifi] < 255) { 2137 - rcu_read_unlock(); 2136 + cache_proxy->_c.mfc_un.res.ttls[true_vifi] < 255) 2138 2137 goto forward; 2139 - } 2140 2138 } 2141 2139 2142 2140 /*