hostap: GFP_ATOMIC/GFP_KERNEL cleanup

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>
This commit is contained in:
Matt Renzelmann 2012-04-12 17:42:43 -05:00 committed by John W. Linville
parent ec14bcd20f
commit 579b063764

View 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;