- mac80211-fix-notify_mac-function.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     mac80211: fix notify_mac function
has been removed from the -mm tree.  Its filename was
     mac80211-fix-notify_mac-function.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: mac80211: fix notify_mac function
From: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

The ieee80211_notify_mac() function uses ieee80211_sta_req_auth() which in
turn calls ieee80211_set_disassoc() which calls a few functions that need
to be able to sleep, so ieee80211_notify_mac() cannot use RCU locking for
the interface list and must use rtnl locking instead.

Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
Cc: "John W. Linville" <linville@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 net/mac80211/mlme.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -puN net/mac80211/mlme.c~mac80211-fix-notify_mac-function net/mac80211/mlme.c
--- a/net/mac80211/mlme.c~mac80211-fix-notify_mac-function
+++ a/net/mac80211/mlme.c
@@ -2570,14 +2570,14 @@ void ieee80211_notify_mac(struct ieee802
 
 	switch (notif_type) {
 	case IEEE80211_NOTIFY_RE_ASSOC:
-		rcu_read_lock();
-		list_for_each_entry_rcu(sdata, &local->interfaces, list) {
+		rtnl_lock();
+		list_for_each_entry(sdata, &local->interfaces, list) {
 			if (sdata->vif.type != NL80211_IFTYPE_STATION)
 				continue;
 
 			ieee80211_sta_req_auth(sdata, &sdata->u.sta);
 		}
-		rcu_read_unlock();
+		rtnl_unlock();
 		break;
 	}
 }
_

Patches currently in -mm which might be from johannes@xxxxxxxxxxxxxxxx are

origin.patch
linux-next.patch
drivers-net-wireless-ath9k-rcc-use-array_size.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux