Revert "fix a leak of file descriptors" 35/59535/1
authorRoman Marchenko <r.marchenko@samsung.com>
Tue, 16 Feb 2016 09:51:56 +0000 (01:51 -0800)
committerRoman Marchenko <r.marchenko@samsung.com>
Tue, 16 Feb 2016 09:51:56 +0000 (01:51 -0800)
This reverts commit 791c0e2daf69cf0dfd132b021f08252f0ad9324c.

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: Ic62d6a6363762691bfd06bab913949e907ee660a

src/tbm_bufmgr_sprd.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 0b06f8b..670b58c
@@ -773,7 +773,6 @@ tbm_sprd_bo_import_fd (tbm_bo bo, tbm_fd key)
 
     bo_sprd->fd = bufmgr_sprd->fd;
     bo_sprd->gem = gem;
-    bo_sprd->dmabuf = key;
     bo_sprd->size = real_size;
     bo_sprd->flags_sprd = info.flags;
     bo_sprd->flags_tbm = _get_tbm_flag_from_sprd (bo_sprd->flags_sprd);