]> git.baikalelectronics.ru Git - kernel.git/commit
plip: avoid rcu debug splat
authorFlorian Westphal <fw@strlen.de>
Sun, 7 Aug 2022 11:53:04 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:24 +0000 (11:18 +0200)
commit2876c5463ef2a11fae123e0bb84547d2c1a0c9f5
treea1af00971d2b95f36360ce1f6a4d7d34b442cd1a
parent077096c94fd262d5c22d400f40c54816f13fb232
plip: avoid rcu debug splat

commit bbc3fc11baf4221f467b216c6b710d51ecdce1f6 upstream.

WARNING: suspicious RCU usage
5.2.0-rc2-00605-g2638eb8b50cfc #1 Not tainted
drivers/net/plip/plip.c:1110 suspicious rcu_dereference_check() usage!

plip_open is called with RTNL held, switch to the correct helper.

Fixes: 5040d9557b30 ("net: ipv4: provide __rcu annotation for ifa_list")
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Link: https://lore.kernel.org/r/20220807115304.13257-1-fw@strlen.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/plip/plip.c