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 1703abf73dace15d4240fd6028fb16cfbbd2f023..a33fa394e3499cbca7e03b413c00f9afd42e772e 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;