]> 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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 9 Aug 2022 19:16:02 +0000 (12:16 -0700)
commit9f7b07fb8e7c0852072ae5b0fcbaab4091362b9f
tree9f91653a542de5b1366d5b8e0d5edd8e22fbec36
parent0b968698113588a2c02fa04af655ac18f55f9296
plip: avoid rcu debug splat

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: a062ebaf8b1c ("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>
drivers/net/plip/plip.c