wcn36xx: allocate skbs with GFP_KERNEL during init
authorDaniel Mack <daniel@zonque.org>
Tue, 10 Apr 2018 14:52:45 +0000 (17:52 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 10 Apr 2018 14:59:11 +0000 (17:59 +0300)
commit5151a673da43fbaeb62fcbd20814a3cdd4dd3afd
treeac2a2339bd3d9b49d94319c4472f696b085abc49
parent6062546d9b7fecd93b9ad5ed6a34d4741cf3c51a
wcn36xx: allocate skbs with GFP_KERNEL during init

GFP_ATOMIC should only be used when the allocation is done from atomic
context. Introduce a new flag to wcn36xx_dxe_fill_skb() and use GFP_KERNEL
when pre-allocating buffers during init.

This doesn't fix an issue that was observed in the wild, but it reduces
the chance of failed allocations under memory pressure.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wcn36xx/dxe.c