On Thu, 2014-11-13 at 17:25 +0200, Jukka Rissanen wrote: > @@ -12127,6 +12130,12 @@ static int nl80211_netlink_notify(struct notifier_block * nb, > > list_for_each_entry_rcu(rdev, &cfg80211_rdev_list, list) { > bool schedule_destroy_work = false; > + bool schedule_scan_stop = false; > + struct cfg80211_sched_scan_request *req = rdev->sched_scan_req; > + > + if (req && req->owner_nlportid == notify->portid && > + notify->portid) > + schedule_scan_stop = true; > > list_for_each_entry_rcu(wdev, &rdev->wdev_list, list) { > cfg80211_mlme_unregister_socket(wdev, notify->portid); This is racy, it'll probably cause crashes at some point. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html