mwifiex: use GFP_ATOMIC under spin lock
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 9 Aug 2012 06:57:57 +0000 (09:57 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Aug 2012 19:27:05 +0000 (15:27 -0400)
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>
drivers/net/wireless/mwifiex/uap_event.c

index 1703abf..a33fa39 100644 (file)
@@ -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;