commit | a7e750c9cc1ea12d07248cc8d3be0634de996d1e | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Tue Sep 26 17:52:03 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Sep 26 17:52:03 2017 +0000 |
tree | bcbef041a890072aa9af1531a0443a407bf3f376 | |
parent | 0e99eccf6e21a13463ab295a878dbd5f82b5b91d [diff] | |
parent | 9f797c57a3ca2a32145e887355686fad5c1ac735 [diff] |
Merge "sync: store the num_fences from first SYNC_IOC_FILE_INFO"
diff --git a/libsync/sync.c b/libsync/sync.c index e657658..6b187fa 100644 --- a/libsync/sync.c +++ b/libsync/sync.c
@@ -217,6 +217,8 @@ local_info.num_fences * sizeof(struct sync_fence_info)); if (!info) return NULL; + + info->num_fences = local_info.num_fences; info->sync_fence_info = (__u64)(uintptr_t)(info + 1); err = ioctl(fd, SYNC_IOC_FILE_INFO, info);