commit | f7d14b643b48800ddb6b117fadc5225a67ea5a27 | [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 | dea5e081ac0f94a83650a600af881b529817b6fd [diff] | |
parent | 90a74600d772ee578aaf5c63005e2d80b0d223c9 [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);