Skip to content
Commit 8795cc68 authored by Lynus Vaz's avatar Lynus Vaz
Browse files

msm: kgsl: Don't signal the timeline if its refcount is zero



Sync timeline signaling is done asynchronously, and each call may
signal multiple timestamps. This means the signal function can be
called with no outstanding fences, and even after the context is
detached but not yet destroyed.  We need to check for a zero refcount
when signaling it. This is safe since we take a context refcount
before signaling the timeline, and the timeline is freed when the
context is destroyed.

Change-Id: I7f91dafc4f5fc2cf15ef6685c7c9cd6e929407a7
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
parent 7c317709
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment