aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSundar Raman2013-07-26 09:34:26 -0500
committerSundar Raman2013-07-26 15:59:45 -0500
commit3d84b522bf60b9dae8215b85f641a690f89fa652 (patch)
treee6e9a0ae344ec1844120994a267d708913bb874a
parent5f1023048e35f0c6d89f0eb83c74866fa2cb54b2 (diff)
downloadkernel-video-3d84b522bf60b9dae8215b85f641a690f89fa652.tar.gz
kernel-video-3d84b522bf60b9dae8215b85f641a690f89fa652.tar.xz
kernel-video-3d84b522bf60b9dae8215b85f641a690f89fa652.zip
gpu: ion: fix omap_ion_share_fd_to_buffers api
the output value from ion_share_dma_buf is a dma buf fd buffers array was filled mistakenly as the code was ported from k3.4 where the equivalent function ion_share used to return pointer to ion_buffer. updated the code to upref using ion_share_dma_buf() and get the handle to buffer using ion_handle_buffer(). Change-Id: I3bb39f918a9dde8ee78ffa3adcab447589295fdf Signed-off-by: Sundar Raman <a0393242@ti.com>
-rwxr-xr-xdrivers/gpu/ion/omap/omap_ion.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/ion/omap/omap_ion.c b/drivers/gpu/ion/omap/omap_ion.c
index 886dd6f8133..df8f3818653 100755
--- a/drivers/gpu/ion/omap/omap_ion.c
+++ b/drivers/gpu/ion/omap/omap_ion.c
@@ -292,7 +292,8 @@ int omap_ion_share_fd_to_buffers(int fd, struct ion_buffer **buffers,
292 292
293 for (i = 0; i < *num_handles; i++) { 293 for (i = 0; i < *num_handles; i++) {
294 if (handles[i]) 294 if (handles[i])
295 buffers[i] = ion_share_dma_buf(client, handles[i]); 295 share_fd = ion_share_dma_buf(client, handles[i]);
296 buffers[i] = ion_handle_buffer(handles[i]);
296 } 297 }
297 298
298exit: 299exit: