diff options
| author | Olof Johansson <olof@lixom.net> | 2013-04-28 12:43:08 -0700 | 
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-04-28 15:01:12 -0700 | 
| commit | afcf7924ecab726dab0227188783c4a40d9f0eec (patch) | |
| tree | 606b0883c0ad3fb2ef04f0f036a55ed3875fdc9b /net/mac80211/offchannel.c | |
| parent | dc9c220304c882f06aaadf427821c6388782aab8 (diff) | |
| parent | d21be237ffa357e55005e2bf9ffef10b23c184d0 (diff) | |
| download | olio-linux-3.10-afcf7924ecab726dab0227188783c4a40d9f0eec.tar.xz olio-linux-3.10-afcf7924ecab726dab0227188783c4a40d9f0eec.zip  | |
Merge branch 'fixes' into next/cleanup
Merging in fixes since there's a conflict in the omap4 clock tables caused by
it.
* fixes: (245 commits)
  ARM: highbank: fix cache flush ordering for cpu hotplug
  ARM: OMAP4: hwmod data: make 'ocp2scp_usb_phy_phy_48m" as the main clock
  arm: mvebu: Fix the irq map function in SMP mode
  Fix GE0/GE1 init on ix2-200 as GE0 has no PHY
  ARM: S3C24XX: Fix interrupt pending register offset of the EINT controller
  ARM: S3C24XX: Correct NR_IRQS definition for s3c2440
  ARM i.MX6: Fix ldb_di clock selection
  ARM: imx: provide twd clock lookup from device tree
  ARM: imx35 Bugfix admux clock
  ARM: clk-imx35: Bugfix iomux clock
  + Linux 3.9-rc6
Signed-off-by: Olof Johansson <olof@lixom.net>
Conflicts:
	arch/arm/mach-omap2/cclock44xx_data.c
Diffstat (limited to 'net/mac80211/offchannel.c')
| -rw-r--r-- | net/mac80211/offchannel.c | 23 | 
1 files changed, 17 insertions, 6 deletions
diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c index cc79b4a2e82..430bd254e49 100644 --- a/net/mac80211/offchannel.c +++ b/net/mac80211/offchannel.c @@ -297,10 +297,13 @@ void ieee80211_start_next_roc(struct ieee80211_local *local)  	}  } -void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc) +void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc, bool free)  {  	struct ieee80211_roc_work *dep, *tmp; +	if (WARN_ON(roc->to_be_freed)) +		return; +  	/* was never transmitted */  	if (roc->frame) {  		cfg80211_mgmt_tx_status(&roc->sdata->wdev, @@ -316,9 +319,12 @@ void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc)  						   GFP_KERNEL);  	list_for_each_entry_safe(dep, tmp, &roc->dependents, list) -		ieee80211_roc_notify_destroy(dep); +		ieee80211_roc_notify_destroy(dep, true); -	kfree(roc); +	if (free) +		kfree(roc); +	else +		roc->to_be_freed = true;  }  void ieee80211_sw_roc_work(struct work_struct *work) @@ -331,6 +337,9 @@ void ieee80211_sw_roc_work(struct work_struct *work)  	mutex_lock(&local->mtx); +	if (roc->to_be_freed) +		goto out_unlock; +  	if (roc->abort)  		goto finish; @@ -370,7 +379,7 @@ void ieee80211_sw_roc_work(struct work_struct *work)   finish:  		list_del(&roc->list);  		started = roc->started; -		ieee80211_roc_notify_destroy(roc); +		ieee80211_roc_notify_destroy(roc, !roc->abort);  		if (started) {  			drv_flush(local, false); @@ -410,7 +419,7 @@ static void ieee80211_hw_roc_done(struct work_struct *work)  	list_del(&roc->list); -	ieee80211_roc_notify_destroy(roc); +	ieee80211_roc_notify_destroy(roc, true);  	/* if there's another roc, start it now */  	ieee80211_start_next_roc(local); @@ -460,12 +469,14 @@ void ieee80211_roc_purge(struct ieee80211_sub_if_data *sdata)  	list_for_each_entry_safe(roc, tmp, &tmp_list, list) {  		if (local->ops->remain_on_channel) {  			list_del(&roc->list); -			ieee80211_roc_notify_destroy(roc); +			ieee80211_roc_notify_destroy(roc, true);  		} else {  			ieee80211_queue_delayed_work(&local->hw, &roc->work, 0);  			/* work will clean up etc */  			flush_delayed_work(&roc->work); +			WARN_ON(!roc->to_be_freed); +			kfree(roc);  		}  	}  |