Skip to content

Commit

Permalink
driver: Use correct DMA flags
Browse files Browse the repository at this point in the history
Signed-off-by: João Silva <jgc3silva@gmail.com>
  • Loading branch information
vankxr committed Jun 6, 2024
1 parent 59478f8 commit 912bca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/driver/src/icyradio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 912bca0

Please sign in to comment.