diff options
author | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2019-08-09 09:51:29 +0200 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2019-08-09 18:32:38 +0200 |
commit | c8a6ce71e49c108ca2225345f057777eb046e712 (patch) | |
tree | 7e01f34ad606da27403f0c2b5a786d1957b430d6 /target/linux | |
parent | dda342abba2ec7f11e0314f9b3689f2a29d9565a (diff) | |
download | upstream-c8a6ce71e49c108ca2225345f057777eb046e712.tar.gz upstream-c8a6ce71e49c108ca2225345f057777eb046e712.tar.bz2 upstream-c8a6ce71e49c108ca2225345f057777eb046e712.zip |
ar71xx/ath79: ag71xx: init rings with GFP_KERNEL
Upstream commit 246902bdf562d45ea3475fac64c93048a7a39f01
Which contains following explanation:
--
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.
--
Looking at the code, all other descriptors also use plain GFP_KERNEL
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index 40f8aaa20a..b540a56a3a 100644 --- a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -277,7 +277,7 @@ static int ag71xx_rings_init(struct ag71xx *ag) return -ENOMEM; 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; |