drivers: net: hamradio: Fix suspicious RCU usage warning in bpqether.c
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Thu, 14 May 2020 14:11:15 +0000 (19:41 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2020 00:43:45 +0000 (17:43 -0700)
commit95f59bf88bb75281cc626e283ecefdd5d5641427
tree84e4c587ea545b36a522034980a918ea913072b4
parentcc8a677a76f419016b5e231207d09b073f9b1d3f
drivers: net: hamradio: Fix suspicious RCU usage warning in bpqether.c

This patch fixes the following warning:
=============================
WARNING: suspicious RCU usage
5.7.0-rc5-next-20200514-syzkaller #0 Not tainted
-----------------------------
drivers/net/hamradio/bpqether.c:149 RCU-list traversed in non-reader section!!

Since rtnl lock is held, pass this cond in list_for_each_entry_rcu().

Reported-by: syzbot+bb82cafc737c002d11ca@syzkaller.appspotmail.com
Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/bpqether.c