Merge "sync: store the num_fences from first SYNC_IOC_FILE_INFO" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot 2017-08-02 15:41:55 +00:00 committed by Android (Google) Code Review
commit 3bb2dfd252

View file

@ -217,6 +217,8 @@ static struct sync_file_info *modern_sync_file_info(int fd)
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);