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

Commit 429b038c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 1e801a2f 8795cc68
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -370,7 +370,8 @@ static void kgsl_sync_timeline_signal(struct kgsl_sync_timeline *ktimeline,
	unsigned long flags;
	struct kgsl_sync_fence *kfence, *next;

	kref_get(&ktimeline->kref);
	if (!kref_get_unless_zero(&ktimeline->kref))
		return;

	spin_lock_irqsave(&ktimeline->lock, flags);
	if (timestamp_cmp(timestamp, ktimeline->last_timestamp) > 0)