]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: et131x: Use GFP_KERNEL instead of GFP_ATOMIC when allocating tx_ring...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 31 Jul 2019 07:38:42 +0000 (09:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2019 15:33:30 +0000 (08:33 -0700)
commit47b69bf74f16b20a3bb95b1fe27e5347dd34b683
tree7652180bb40f521bd6976565ff07bcb5f96a866d
parent5b31f3e39a6c4be55ede49da0dd352017f09e8cf
net: ethernet: et131x: Use GFP_KERNEL instead of GFP_ATOMIC when allocating tx_ring->tcb_ring

There is no good reason to use GFP_ATOMIC here. Other memory allocations
are performed with GFP_KERNEL (see other 'dma_alloc_coherent()' below and
'kzalloc()' in 'et131x_rx_dma_memory_alloc()')

Use GFP_KERNEL which should be enough.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/agere/et131x.c