dma-buf: remove size align to cache line size check for partial sync

Fixes: 1aef8d5550 ("dma-buf: add DMA_BUF_IOCTL_SYNC_PARTIAL support")
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I89a0a98be33235ce707f660a95098511bbdf830a
This commit is contained in:
Jianqun Xu
2022-01-19 17:38:02 +08:00
committed by Tao Huang
parent de8062f2c3
commit 2da4d0ad4c

View File

@@ -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;