hostap: GFP_ATOMIC/GFP_KERNEL cleanup
authorMatt Renzelmann <mjr@cs.wisc.edu>
Thu, 12 Apr 2012 22:42:43 +0000 (17:42 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Apr 2012 18:19:29 +0000 (14:19 -0400)
The driver is allocating memory during initialization with GFP_ATOMIC
even though GFP_KERNEL is sufficient.  This patch fixes it.

Signed-off-by: Matt Renzelmann <mjr@cs.wisc.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/hostap/hostap_main.c

index bfa0d54221e8f48d4201f62b4a44ba777067f2fa..627bc12074c729a37426199e52cb119dce01fdda 100644 (file)
@@ -244,8 +244,7 @@ u16 hostap_tx_callback_register(local_info_t *local,
        unsigned long flags;
        struct hostap_tx_callback_info *entry;
 
-       entry = kmalloc(sizeof(*entry),
-                                                          GFP_ATOMIC);
+       entry = kmalloc(sizeof(*entry), GFP_KERNEL);
        if (entry == NULL)
                return 0;