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 <dan.carpenter@oracle.com> Acked-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
9c7ff737b6
commit
126f492355
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue