ar71xx: ag71xx: init rings with GFP_KERNEL
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Fri, 9 Aug 2019 16:51:07 +0000 (18:51 +0200)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Fri, 9 Aug 2019 16:51:07 +0000 (18:51 +0200)
ar71xx got lost during final rebase ..

Fixes: b417a0c48d63 ("ar71xx/ath79: ag71xx: init rings with GFP_KERNEL")
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c

index 30ab37efe4e05099eea4ca504285f77a51c0c2e9..f0d8d46a18a11e2877f4c18e39034928c9509773 100644 (file)
@@ -291,7 +291,7 @@ static int ag71xx_rings_init(struct ag71xx *ag)
                return -ENOMEM;
 
        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) {
                kfree(tx->buf);
                tx->buf = NULL;