]> git.baikalelectronics.ru Git - kernel.git/commit
net: caif: Add lockdep expression to RCU traversal primitive
authorAmol Grover <frextrite@gmail.com>
Thu, 12 Mar 2020 05:34:20 +0000 (11:04 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 05:55:25 +0000 (22:55 -0700)
commit6c8d435ed59a19d4f66710122f0a2c3777d0973d
tree030a3793ef5e3c6e2bdb97143640e17aef73827f
parent6e332223fcb013fad81aa2687b8f37f818748e8b
net: caif: Add lockdep expression to RCU traversal primitive

caifdevs->list is traversed using list_for_each_entry_rcu()
outside an RCU read-side critical section but under the
protection of rtnl_mutex. Hence, add the corresponding lockdep
expression to silence the following false-positive warning:

[   10.868467] =============================
[   10.869082] WARNING: suspicious RCU usage
[   10.869817] 5.6.0-rc1-00177-g06ec0a154aae4 #1 Not tainted
[   10.870804] -----------------------------
[   10.871557] net/caif/caif_dev.c:115 RCU-list traversed in non-reader section!!

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Amol Grover <frextrite@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_dev.c