mirror of https://gitee.com/openkylin/linux.git
net: ag71xx: Use GFP_KERNEL instead of GFP_ATOMIC in 'ag71xx_rings_init()'
There is no need to use GFP_ATOMIC here, GFP_KERNEL should be enough. The 'kcalloc()' just a few lines above, already uses GFP_KERNEL. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
47b69bf74f
commit
246902bdf5
|
@ -1141,7 +1141,7 @@ static int ag71xx_rings_init(struct ag71xx *ag)
|
|||
|
||||
tx->descs_cpu = dma_alloc_coherent(&ag->pdev->dev,
|
||||
ring_size * AG71XX_DESC_SIZE,
|
||||
&tx->descs_dma, GFP_ATOMIC);
|
||||
&tx->descs_dma, GFP_KERNEL);
|
||||
if (!tx->descs_cpu) {
|
||||
kfree(tx->buf);
|
||||
tx->buf = NULL;
|
||||
|
|
Loading…
Reference in New Issue