Merge "sync: store the num_fences from first SYNC_IOC_FILE_INFO" am: f7d14b643b

am: 53a13e5705

Change-Id: Iab1bb3b899965445087338ae01fbfb05c262027f
This commit is contained in:
Saurabh Shah 2017-09-26 18:00:05 +00:00 committed by android-build-merger
commit 1db0e0e5b7
1 changed files with 2 additions and 0 deletions

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);