From 912bca0a4f969b9eb89921b4aa3c8e57e4cd3e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Silva?= Date: Thu, 6 Jun 2024 12:17:11 +0100 Subject: [PATCH] driver: Use correct DMA flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Silva --- software/driver/src/icyradio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/driver/src/icyradio.c b/software/driver/src/icyradio.c index 167388af..b989f2ad 100644 --- a/software/driver/src/icyradio.c +++ b/software/driver/src/icyradio.c @@ -91,7 +91,7 @@ static icyradio_dma_buffer_t *icyradio_dma_buffer_alloc(icyradio_dev_t *pDev, ui pr_notice("Allocating DMA buffer for device %u of size 0x%08X", pDev->ulDevID, ulSize); - pVirt = dma_alloc_coherent(&pDev->pPCIDev->dev, ulSize, &ulPhys, GFP_ATOMIC); + pVirt = dma_alloc_coherent(&pDev->pPCIDev->dev, ulSize, &ulPhys, GFP_USER | GFP_ATOMIC | GFP_DMA); if(!pVirt) {