Commit 126f4923 authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville

mwifiex: use GFP_ATOMIC under spin lock

We're holding the sta_list_spinlock here so we can't sleep.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9c7ff737
...@@ -63,7 +63,7 @@ mwifiex_add_sta_entry(struct mwifiex_private *priv, u8 *mac) ...@@ -63,7 +63,7 @@ mwifiex_add_sta_entry(struct mwifiex_private *priv, u8 *mac)
if (node) if (node)
goto done; goto done;
node = kzalloc(sizeof(struct mwifiex_sta_node), GFP_KERNEL); node = kzalloc(sizeof(struct mwifiex_sta_node), GFP_ATOMIC);
if (!node) if (!node)
goto done; goto done;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment