Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;