summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaoquan He <hebaoquan@kylinos.cn>2026-09-03 19:18:31 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-10-13 15:55:01 -0700
commit5554d0e0dbff3ac7ebb445da05922a4ea7ee7396 (patch)
treef971bbf04ffaa51b9b75b1354acd51ae04d9783c
parent41a1a700373ff160538feaa0ddc7a4b1992c69d0 (diff)
downloadlinux-next-5554d0e0dbff3ac7ebb445da05922a4ea7ee7396.tar.gz
linux-next-5554d0e0dbff3ac7ebb445da05922a4ea7ee7396.zip
media: staging: imx: don't use GFP_DMA when calling dma_alloc_coherent()
dma_alloc_coherent() allocates the DMA buffer with the device's addressing limitation in mind; the DMA core picks the zone from the device's coherent DMA mask and ignores GFP_DMA passed by the caller. Remove the redundant GFP_DMA flag. Link: https://lore.kernel.org/20260903111836.1777265-9-hebaoquan@kylinos.cn Signed-off-by: Baoquan He <hebaoquan@kylinos.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Christoph Hellwig <hch@lst.de> Cc: Harry Yoo <harry@kernel.org>
-rw-r--r--drivers/staging/media/imx/imx-media-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/imx/imx-media-utils.c b/drivers/staging/media/imx/imx-media-utils.c
index f119477cac6b..7bdcb88a686b 100644
--- a/drivers/staging/media/imx/imx-media-utils.c
+++ b/drivers/staging/media/imx/imx-media-utils.c
@@ -588,7 +588,7 @@ int imx_media_alloc_dma_buf(struct device *dev,
buf->len = PAGE_ALIGN(size);
buf->virt = dma_alloc_coherent(dev, buf->len, &buf->phys,
- GFP_DMA | GFP_KERNEL);
+ GFP_KERNEL);
if (!buf->virt)
return -ENOMEM;