From 03680f0602e5693593f35c908e79f92fc86b3595 Mon Sep 17 00:00:00 2001 From: zhoumengjie Date: Thu, 22 Feb 2024 16:36:17 +0800 Subject: [PATCH] fix check heapflags Signed-off-by: zhoumengjie Change-Id: Ic945db75b44dc21f9a203ec16925fe8ca5614c77 --- 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