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: Lynus Vaz <lvaz@codeaurora.org>
Loading
Please register or sign in to comment