]> git.baikalelectronics.ru Git - kernel.git/commit
ipw2100: Use GFP_KERNEL instead of GFP_ATOMIC in some memory allocation
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 22 Jul 2020 10:17:01 +0000 (12:17 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 2 Aug 2020 15:19:03 +0000 (18:19 +0300)
commit5c8cb183dad8218283d414f54a0d2f309a064ac1
tree4b97a62b9edf2a962df272104dc44259b3d9e269
parent1fef8e9dd6fc16437312cde8dd9b7ef194e5cbed
ipw2100: Use GFP_KERNEL instead of GFP_ATOMIC in some memory allocation

The call chain is:
   ipw2100_pci_init_one            (the probe function)
     --> ipw2100_queues_allocate
       --> ipw2100_tx_allocate

No lock is taken in the between.
So it is safe to use GFP_KERNEL in 'ipw2100_tx_allocate()'.

BTW, 'ipw2100_queues_allocate()' also calls 'ipw2100_msg_allocate()' which
already allocates some memory using GFP_KERNEL.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200722101701.26126-1-christophe.jaillet@wanadoo.fr
drivers/net/wireless/intel/ipw2x00/ipw2100.c