Search Linux Wireless

Re: [PATCH v5 2/2] nl80211: Stop scheduled scan if netlink client disappears

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux