File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -322,9 +322,9 @@ cfg80211_find_sched_scan_req(struct cfg80211_registered_device *rdev, u64 reqid)
322
322
{
323
323
struct cfg80211_sched_scan_request * pos ;
324
324
325
- ASSERT_RTNL ( );
325
+ WARN_ON_ONCE (! rcu_read_lock_held () && ! lockdep_rtnl_is_held () );
326
326
327
- list_for_each_entry (pos , & rdev -> sched_scan_req_list , list ) {
327
+ list_for_each_entry_rcu (pos , & rdev -> sched_scan_req_list , list ) {
328
328
if (pos -> reqid == reqid )
329
329
return pos ;
330
330
}
@@ -398,13 +398,13 @@ void cfg80211_sched_scan_results(struct wiphy *wiphy, u64 reqid)
398
398
trace_cfg80211_sched_scan_results (wiphy , reqid );
399
399
/* ignore if we're not scanning */
400
400
401
- rtnl_lock ();
401
+ rcu_read_lock ();
402
402
request = cfg80211_find_sched_scan_req (rdev , reqid );
403
403
if (request ) {
404
404
request -> report_results = true;
405
405
queue_work (cfg80211_wq , & rdev -> sched_scan_res_wk );
406
406
}
407
- rtnl_unlock ();
407
+ rcu_read_unlock ();
408
408
}
409
409
EXPORT_SYMBOL (cfg80211_sched_scan_results );
410
410
You can’t perform that action at this time.
0 commit comments