From 2da4d0ad4c02c161f152a62bc285fcd8d120b880 Mon Sep 17 00:00:00 2001 From: Jianqun Xu Date: Wed, 19 Jan 2022 17:38:02 +0800 Subject: [PATCH] dma-buf: remove size align to cache line size check for partial sync Fixes: 1aef8d555007 ("dma-buf: add DMA_BUF_IOCTL_SYNC_PARTIAL support") Signed-off-by: Jianqun Xu Change-Id: I89a0a98be33235ce707f660a95098511bbdf830a --- drivers/dma-buf/dma-buf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c index 96bd187a1657..1e40c92cefda 100644 --- a/drivers/dma-buf/dma-buf.c +++ b/drivers/dma-buf/dma-buf.c @@ -473,9 +473,6 @@ static long dma_buf_ioctl(struct file *file, if (sync_p.len == 0) return 0; - if ((sync_p.offset % cache_line_size()) || (sync_p.len % cache_line_size())) - return -EINVAL; - if (sync_p.len > dmabuf->size || sync_p.offset > dmabuf->size - sync_p.len) return -EINVAL;