Skip to content

Commit

Permalink
mwifiex: use GFP_ATOMIC under spin lock
Browse files Browse the repository at this point in the history
We're holding the sta_list_spinlock here so we can't sleep.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Aug 10, 2012
1 parent 9c7ff73 commit 126f492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mwifiex/uap_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 126f492

Please sign in to comment.