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

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

Merge "drm/msm/sde: avoid sde ctx unbalanced call in fence create failure"

parents a73de824 c4caca38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -213,6 +213,7 @@ static int _sde_fence_create_fd(void *fence_ctx, uint32_t val)
						sde_fence->ctx->name, val);
	dma_fence_init(&sde_fence->base, &sde_fence_ops, &ctx->lock,
		ctx->context, val);
	kref_get(&ctx->kref);

	/* create fd */
	fd = get_unused_fd_flags(0);
@@ -235,7 +236,6 @@ static int _sde_fence_create_fd(void *fence_ctx, uint32_t val)

	fd_install(fd, sync_file->file);
	sde_fence->fd = fd;
	kref_get(&ctx->kref);

	spin_lock(&ctx->list_lock);
	list_add_tail(&sde_fence->fence_list, &ctx->fence_list_head);