Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4d43f03e authored by Jeremy Gebben's avatar Jeremy Gebben Committed by Sudeep Yedalapure
Browse files

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.

Change-Id: I0e7bb459f2acc010446ac5e5b3b72c8b16cce079
Signed-off-by: default avatarJeremy Gebben <jgebben@codeaurora.org>
Signed-off-by: default avatarSudeep Yedalapure <sudeepy@codeaurora.org>
parent d25d9d35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment