Skip to contentSkip to conversation

mac80211: revert some GFP_ATOMIC -> GFP_KERNEL changes

PATCH In review Michael Wu 3 participants 3 messages Jul 26, 2007 mac80211

lore
Share & tools
lore

Michael Wu

author
#0 lore raw

PATCH 1/1 mac80211: revert some GFP_ATOMIC -> GFP_KERNEL changes

From: Michael Wu <[email protected]>

Some of the allocations made with GFP_ATOMIC really were necessary.

---

 net/mac80211/ieee80211_sta.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/mac80211/ieee80211_sta.c +2 -2
index 8296c0c..c9fc9a3 100644
@@ -3911,7 +3911,7 @@ ieee80211_sta_scan_result(struct net_device *dev,
 
 	if (bss) {
 		char *buf;
-		buf = kmalloc(30, GFP_KERNEL);
+		buf = kmalloc(30, GFP_ATOMIC);
 		if (buf) {
 			memset(&iwe, 0, sizeof(iwe));
 			iwe.cmd = IWEVCUSTOM;
@@ -3929,7 +3929,7 @@ ieee80211_sta_scan_result(struct net_device *dev,
 		if (!(local->scan_flags & IEEE80211_SCAN_EXTRA_INFO))
 			break;
 
-		buf = kmalloc(100, GFP_KERNEL);
+		buf = kmalloc(100, GFP_ATOMIC);
 		if (!buf)
 			break;
 
#1 lore raw
Quoted 1 line · Somebody in the thread at some point

Some of the allocations made with GFP_ATOMIC really were necessary.

I tested it: this makes the BUG stuff in dmesg go away, thanks :-)

-Andy

#2 lore raw
Quoted 5 lines · Andy Green
Quoted 1 line · Somebody in the thread at some point

Some of the allocations made with GFP_ATOMIC really were necessary.

I tested it: this makes the BUG stuff in dmesg go away, thanks :-)

Confirmed, patch should definitely go into wireless-dev.

Signature · 1 line
Uli Kunitz