summaryrefslogtreecommitdiffstats
path: root/net/wireless/core.h
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-08-02 18:41:48 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-08-06 14:29:58 -0400
commit1f6fc43e621167492ed4b7f3b4269c584c3d6ccc (patch)
tree9d1ad634c1405a8bdd0f9439b598508203cee829 /net/wireless/core.h
parentd4e5979c0da95791aa717c18e162540c7a596360 (diff)
downloadblackbird-op-linux-1f6fc43e621167492ed4b7f3b4269c584c3d6ccc.tar.gz
blackbird-op-linux-1f6fc43e621167492ed4b7f3b4269c584c3d6ccc.zip
cfg80211: process pending events when unregistering net device
libertas currently calls cfg80211_disconnected() when it is being brought down. This causes an event to be allocated, but since the wdev is already removed from the rdev by the time that the event processing work executes, the event is never processed or freed. http://article.gmane.org/gmane.linux.kernel.wireless.general/95666 Fix this leak, and other possible situations, by processing the event queue when a device is being unregistered. Thanks to Johannes Berg for the suggestion. Signed-off-by: Daniel Drake <dsd@laptop.org> Cc: stable@vger.kernel.org Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/core.h')
-rw-r--r--net/wireless/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h
index 5206c6844fd7..bc7430b54771 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -426,6 +426,7 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev,
struct net_device *dev, enum nl80211_iftype ntype,
u32 *flags, struct vif_params *params);
void cfg80211_process_rdev_events(struct cfg80211_registered_device *rdev);
+void cfg80211_process_wdev_events(struct wireless_dev *wdev);
int cfg80211_can_use_iftype_chan(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev,
OpenPOWER on IntegriCloud