Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;