projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57992fa
)
gpu: ion: fix page offset in dma_buf_kmap()
author
Greg Hackmann
<ghackmann@google.com>
Thu, 23 Aug 2012 00:38:04 +0000
(17:38 -0700)
committer
Arve Hjønnevåg
<arve@android.com>
Mon, 1 Jul 2013 21:16:05 +0000
(14:16 -0700)
Change-Id: I1c975f0ffde5c75d6166ae20d379991d3f770a26
Signed-off-by: Greg Hackmann <ghackmann@google.com>
drivers/gpu/ion/ion.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/ion/ion.c
b/drivers/gpu/ion/ion.c
index 658c9ce5c9c663be047d741d8f1d9936d3beeaf6..ddf8c007a75d9faaa0ff3179fb000e94c90f75f9 100644
(file)
--- a/
drivers/gpu/ion/ion.c
+++ b/
drivers/gpu/ion/ion.c
@@
-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,