Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msm: kgsl: fix sync file error handling
We need to call put_unused_fd() on failure, but only if a file hasn't been stored into the fd yet. This function wasn't called from kgsl_ioctl_syncsource_create_fence() and was called incorrectly from kgsl_add_fence_event(). Reorder our sync_fence_install() calls to happen after all possible failures so that error cleanup will be correct. Bug: 32125137 Change-Id: I57a75447d1a430de7e5a93d5cd103269fc0b1e15 Signed-off-by: Jeremy Gebben <[email protected]> Signed-off-by: Francisco Franco <[email protected]>
- Loading branch information