tbm_sync: bug fix timeline create and fence create 84/84184/1
authordeasung.kim <deasung.kim@samsung.com>
Wed, 17 Aug 2016 07:38:24 +0000 (16:38 +0900)
committerdeasung.kim <deasung.kim@samsung.com>
Wed, 17 Aug 2016 07:40:30 +0000 (16:40 +0900)
set timeline fd in timeline structure
fix fence create structure(char pointer to char array[32])

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

index 1f680c8..c0693c2 100644 (file)
@@ -161,6 +161,7 @@ tbm_sync_timeline_create(tbm_sync_error_e *error)
                        TBM_LOG_E("%s\n", "TBM_SYNC calloc failed");
                        close(fd);
                } else {
+                       timeline_handle->fd = fd;
                        timeline = timeline_handle;
                }
        }
@@ -344,7 +345,7 @@ tbm_sync_fence_create(tbm_sync_timeline_h timeline, const char *name, unsigned i
                struct _tbm_sync_timeline *timeline_handle = timeline;
                struct sw_sync_create_fence_data {
                        __u32 value;
-                       char *name;
+                       char name[32];
                        __s32 fence;
                } data;