summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Marchenko <r.marchenko@samsung.com>2016-02-17 15:35:58 +0200
committerSooChan Lim <sc1.lim@samsung.com>2016-03-07 19:42:46 +0900
commit3c7938d12cfdd71a69c8bb0107e96fb4badb6001 (patch)
tree417392a4576ea1b5cf2e751f32c8026f889a61f1
parentd5dc753f1657cb43de7a8084974f1d58440dabdb (diff)
downloadlibtbm-dumb-3c7938d12cfdd71a69c8bb0107e96fb4badb6001.tar.gz
libtbm-dumb-3c7938d12cfdd71a69c8bb0107e96fb4badb6001.tar.bz2
libtbm-dumb-3c7938d12cfdd71a69c8bb0107e96fb4badb6001.zip
The user of libtbm have to control state of "fd" by himself. So libtbm shouldn't save fd which received by tbm_bo_import_fd() Change-Id: Iec7fa7227d7f0f77a3d508095ee13d905fd58f2d Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
-rw-r--r--src/tbm_bufmgr_dumb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbm_bufmgr_dumb.c b/src/tbm_bufmgr_dumb.c
index d1d1d7b..e4d80ab 100644
--- a/src/tbm_bufmgr_dumb.c
+++ b/src/tbm_bufmgr_dumb.c
@@ -673,7 +673,7 @@ tbm_dumb_bo_import_fd (tbm_bo bo, tbm_fd key)
bo_dumb->fd = bufmgr_dumb->fd;
bo_dumb->gem = gem;
- bo_dumb->dmabuf = key;
+ bo_dumb->dmabuf = 0;
bo_dumb->size = real_size;
bo_dumb->flags_dumb = 0;
bo_dumb->flags_tbm = _get_tbm_flag_from_dumb (bo_dumb->flags_dumb);