mwifiex: use GFP_ATOMIC under spin lock
Subsystems (2)
PATCH 1/1 mwifiex: use GFP_ATOMIC under spin lock
We're holding the sta_list_spinlock here so we can't sleep.
Signed-off-by Dan Carpenter <[email protected]>
drivers/net/wireless/mwifiex/uap_event.c +1 -1
@@ -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;
Hi Dan,
Thanks for the patch.
Quoted 3 lines
We're holding the
sta_list_spinlockhere so we can't sleep.Signed-off-by Dan Carpenter <[email protected]>
Acked-by Bing Zhao <[email protected]>
Regards,
Bing
Quoted 14 lines
drivers/net/wireless/mwifiex/uap_event.c +1
-1@@ -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;