diff options
author | Daniel Drake <dsd@laptop.org> | 2012-08-02 18:41:48 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-08-06 14:29:58 -0400 |
commit | 1f6fc43e621167492ed4b7f3b4269c584c3d6ccc (patch) | |
tree | 9d1ad634c1405a8bdd0f9439b598508203cee829 /net/wireless/util.c | |
parent | d4e5979c0da95791aa717c18e162540c7a596360 (diff) | |
download | op-kernel-dev-1f6fc43e621167492ed4b7f3b4269c584c3d6ccc.zip op-kernel-dev-1f6fc43e621167492ed4b7f3b4269c584c3d6ccc.tar.gz |
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/util.c')
-rw-r--r-- | net/wireless/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index 26f8cd3..994e2f0 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -735,7 +735,7 @@ void cfg80211_upload_connect_keys(struct wireless_dev *wdev) wdev->connect_keys = NULL; } -static void cfg80211_process_wdev_events(struct wireless_dev *wdev) +void cfg80211_process_wdev_events(struct wireless_dev *wdev) { struct cfg80211_event *ev; unsigned long flags; |