forked from Minki/linux
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:
parent
ec14bcd20f
commit
579b063764
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user