tbm_sync: bug fix tbm_sync_fence_import 05/84205/1
authordeasung.kim <deasung.kim@samsung.com>
Wed, 17 Aug 2016 09:45:04 +0000 (18:45 +0900)
committerdeasung.kim <deasung.kim@samsung.com>
Wed, 17 Aug 2016 09:46:18 +0000 (18:46 +0900)
save old fd to new fd in tbm_sync_fence

Change-Id: I219340be9baec80b362140a50a49c4fa27fce4c4
Signed-off-by: deasungkim <deasung.kim@samsung.com>
src/tbm_sync.c

index 5fa8eb3f1dcd7f0631051df88926301b9a9d3ffb..e8219eedb5c26aa33c1dd8bc7b68a008ed6df6ca 100644 (file)
@@ -588,7 +588,7 @@ tbm_sync_fence_import(int fd, tbm_sync_error_e *error)
                        TBM_LOG_E("%s\n", "TBM_SYNC calloc failed");
                        close(new_fd);
                } else {
-                       fence_handle->fd = fd;
+                       fence_handle->fd = new_fd;
                        fence = fence_handle;
                }
        }