From: Johannes Berg Date: Tue, 20 Aug 2013 09:28:50 +0000 (+0200) Subject: mac80211: add missing channel context release X-Git-Tag: v3.12-rc1~132^2~84^2^2~7^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a3ba63c235fdcd37f6451bdf4a0c7865a3930cf;p=kernel%2Fkernel-generic.git mac80211: add missing channel context release IBSS needs to release the channel context when leaving but I evidently missed that. Fix it. Cc: stable@vger.kernel.org Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index ea7b9c2..5e8bb3b 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -1138,6 +1138,7 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata) clear_bit(SDATA_STATE_OFFCHANNEL_BEACON_STOPPED, &sdata->state); ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED | BSS_CHANGED_IBSS); + ieee80211_vif_release_channel(sdata); synchronize_rcu(); kfree(presp);