ar71xx: ag71xx: init rings with GFP_KERNEL

ar71xx got lost during final rebase ..

Fixes: c8a6ce71e4 ("ar71xx/ath79: ag71xx: init rings with GFP_KERNEL")
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
openwrt-19.07
Koen Vandeputte 2019-08-09 18:51:07 +02:00
parent c8a6ce71e4
commit 62eae4805b
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ static int ag71xx_rings_init(struct ag71xx *ag)
return -ENOMEM; return -ENOMEM;
tx->descs_cpu = dma_alloc_coherent(NULL, ring_size * AG71XX_DESC_SIZE, tx->descs_cpu = dma_alloc_coherent(NULL, ring_size * AG71XX_DESC_SIZE,
&tx->descs_dma, GFP_ATOMIC); &tx->descs_dma, GFP_KERNEL);
if (!tx->descs_cpu) { if (!tx->descs_cpu) {
kfree(tx->buf); kfree(tx->buf);
tx->buf = NULL; tx->buf = NULL;