Skip to content
Commit 1963507e authored by Madhuparna Bhowmik's avatar Madhuparna Bhowmik Committed by David S. Miller
Browse files

net: kcm: kcmproc.c: Fix RCU list suspicious usage warning



This path fixes the suspicious RCU usage warning reported by
kernel test robot.

net/kcm/kcmproc.c:#RCU-list_traversed_in_non-reader_section

There is no need to use list_for_each_entry_rcu() in
kcm_stats_seq_show() as the list is always traversed under
knet->mutex held.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10ee4b87
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment