mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue