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

Commit b1273894 authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Put back the process refcount



In case we fail to create the context timeline, put
back the process refcount.

Change-Id: Ic7241f0e28d6c53822d21fbe59ac16ca5ebd9ba5
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 191ff2f4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -580,8 +580,10 @@ int kgsl_context_init(struct kgsl_device_private *dev_priv,
	context->tid = task_pid_nr(current);

	ret = kgsl_sync_timeline_create(context);
	if (ret)
	if (ret) {
		kgsl_process_private_put(dev_priv->process_priv);
		goto out;
	}

	snprintf(name, sizeof(name), "context-%d", id);
	kgsl_add_event_group(&context->events, context, name,