mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-11 23:48:08 +09:00
gpu: ion: fix page offset in dma_buf_kmap()
Change-Id: I1c975f0ffde5c75d6166ae20d379991d3f770a26 Signed-off-by: Greg Hackmann <ghackmann@google.com>
This commit is contained in:
committed by
Arve Hjønnevåg
parent
57992fa2fb
commit
2c5cfa4d04
@@ -846,7 +846,7 @@ static void ion_dma_buf_release(struct dma_buf *dmabuf)
|
||||
static void *ion_dma_buf_kmap(struct dma_buf *dmabuf, unsigned long offset)
|
||||
{
|
||||
struct ion_buffer *buffer = dmabuf->priv;
|
||||
return buffer->vaddr + offset;
|
||||
return buffer->vaddr + offset * PAGE_SIZE;
|
||||
}
|
||||
|
||||
static void ion_dma_buf_kunmap(struct dma_buf *dmabuf, unsigned long offset,
|
||||
|
||||
Reference in New Issue
Block a user