* [PATCH] cfg80211: fix a locking bug
@ 2009-07-10 0:45 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2009-07-10 0:45 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless, Jouni Malinen
The cfg80211_sme_disassoc() function is already holding
a lock here that cfg80211_mlme_deauth() would take, so
it needs to use __cfg80211_mlme_deauth() instead.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/wireless/sme.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- wireless-testing.orig/net/wireless/sme.c 2009-07-10 02:43:53.000000000 +0200
+++ wireless-testing/net/wireless/sme.c 2009-07-10 02:43:59.000000000 +0200
@@ -826,8 +826,8 @@ void cfg80211_sme_disassoc(struct net_de
return;
memcpy(bssid, wdev->auth_bsses[idx]->pub.bssid, ETH_ALEN);
- if (cfg80211_mlme_deauth(rdev, dev, bssid,
- NULL, 0, WLAN_REASON_DEAUTH_LEAVING)) {
+ if (__cfg80211_mlme_deauth(rdev, dev, bssid,
+ NULL, 0, WLAN_REASON_DEAUTH_LEAVING)) {
/* whatever -- assume gone anyway */
cfg80211_unhold_bss(wdev->auth_bsses[idx]);
cfg80211_put_bss(&wdev->auth_bsses[idx]->pub);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-10 0:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10 0:45 [PATCH] cfg80211: fix a locking bug Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox