sync: Use correct type in size calculation
The previous and current types are the same size, so this wouldn't have caused a bug in practice, but it is confusing, and would have been a problem in the unlikely event we changed the size of one of the types. Test: sync-unit-tests on bullhead Change-Id: Ic43b81f3b4ff214af86b6b6d4d02c648f95d0c4b
This commit is contained in:
parent
917cca2f04
commit
077ffd5055
|
@ -145,7 +145,7 @@ struct sync_fence_info_data *sync_fence_info(int fd)
|
|||
}
|
||||
|
||||
legacy_info->len = sizeof(*legacy_info) +
|
||||
num_fences * sizeof(struct sync_fence_info);
|
||||
num_fences * sizeof(struct sync_pt_info);
|
||||
strlcpy(legacy_info->name, info->name, sizeof(legacy_info->name));
|
||||
legacy_info->status = info->status;
|
||||
|
||||
|
|
Loading…
Reference in New Issue