mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user