mwifiex: use GFP_ATOMIC under spin lock

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:31 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=126f492355be8c771338b680b3dfbb38a19c88ab
Commit:     126f492355be8c771338b680b3dfbb38a19c88ab
Parent:     9c7ff737b6a783a6641dca71fab4f94aaab4bb2a
Author:     Dan Carpenter <dan.carpenter at oracle.com>
AuthorDate: Thu Aug 9 09:57:57 2012 +0300
Committer:  John W. Linville <linville at tuxdriver.com>
CommitDate: Fri Aug 10 15:27:05 2012 -0400

    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 at oracle.com>
    Acked-by: Bing Zhao <bzhao at marvell.com>
    Signed-off-by: John W. Linville <linville at tuxdriver.com>
---
 drivers/net/wireless/mwifiex/uap_event.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/mwifiex/uap_event.c b/drivers/net/wireless/mwifiex/uap_event.c
index 1703abf..a33fa39 100644
--- a/drivers/net/wireless/mwifiex/uap_event.c
+++ b/drivers/net/wireless/mwifiex/uap_event.c
@@ -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;
 



More information about the linux-mtd-cvs mailing list