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

Commit 94c4a8ed authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: hgsl: remove fence from timeline list on fence release"

parents f95ad8a7 c6e51290
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -171,8 +171,12 @@ static void hgsl_hsync_fence_release(struct dma_fence *base)
			container_of(base, struct hgsl_hsync_fence, fence);
	struct hgsl_hsync_timeline *timeline = fence->timeline;

	if (timeline)
	if (timeline) {
		spin_lock(&timeline->lock);
		list_del_init(&fence->child_list);
		spin_unlock(&timeline->lock);
		hgsl_hsync_timeline_put(timeline);
	}
	kfree(fence);
}