From 7b81d74d35dda7c2d87754dec9e836c7582e89ce Mon Sep 17 00:00:00 2001 From: surencong Date: Tue, 27 Feb 2024 20:59:46 +0800 Subject: [PATCH] fix check heapflags Signed-off-by: surencong Change-Id: I7cee902614a6c4433579d14fe4c9b4254c4d82f9 --- drivers/dma-buf/dma-heap.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index bbbfa28b2f6c..9b75f17948b3 100644 --- a/drivers/dma-buf/dma-heap.c +++ b/drivers/dma-buf/dma-heap.c @@ -93,9 +93,6 @@ static long dma_heap_ioctl_allocate(struct file *file, void *data) if (heap_allocation->fd_flags & ~DMA_HEAP_VALID_FD_FLAGS) return -EINVAL; - if (heap_allocation->heap_flags & ~DMA_HEAP_VALID_HEAP_FLAGS) - return -EINVAL; - fd = dma_heap_buffer_alloc(heap, heap_allocation->len, heap_allocation->fd_flags, heap_allocation->heap_flags); -- Gitee