Skip to contentSkip to conversation

mwifiex: use GFP_ATOMIC under spin lock

PATCH In review Dan Carpenter 2 participants 2 messages Aug 9, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mwifiex: use GFP_ATOMIC under spin lock

We're holding the sta_list_spinlock here so we can't sleep.

drivers/net/wireless/mwifiex/uap_event.c +1 -1
index 14d4f04..ca4a1f3 100644
@@ -63,7 +63,7 @@ mwifiex_add_sta_entry(struct mwifiex_private *priv, u8 *mac)
 	if (node)
 		goto done;
 
-	node = kzalloc(sizeof(struct mwifiex_sta_node), GFP_KERNEL);
+	node = kzalloc(sizeof(struct mwifiex_sta_node), GFP_ATOMIC);
 	if (!node)
 		goto done;
 
Acked-by on v1 1/1
#1 lore raw

Hi Dan,

Thanks for the patch.

Quoted 3 lines

We're holding the sta_list_spinlock here so we can't sleep.

Regards,
Bing

Quoted 14 lines
drivers/net/wireless/mwifiex/uap_event.c +1 -1
index 14d4f04..ca4a1f3 100644
@@ -63,7 +63,7 @@ mwifiex_add_sta_entry(struct mwifiex_private *priv, u8 *mac)
 	if (node)
 		goto done;
 
-	node = kzalloc(sizeof(struct mwifiex_sta_node), GFP_KERNEL);
+	node = kzalloc(sizeof(struct mwifiex_sta_node), GFP_ATOMIC);
 	if (!node)
 		goto done;