Commit 579b0637 authored by Matt Renzelmann's avatar Matt Renzelmann Committed by John W. Linville

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: default avatarMatt Renzelmann <mjr@cs.wisc.edu>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ec14bcd2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment