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

Commit ac73c1e8 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: Fix creating invalid context when process private get fails"

parents b64d263f a59008b3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -541,8 +541,10 @@ int kgsl_context_init(struct kgsl_device_private *dev_priv,
	 * the context is destroyed. This will also prevent the pagetable
	 * from being destroyed
	 */
	if (!kgsl_process_private_get(dev_priv->process_priv))
	if (!kgsl_process_private_get(dev_priv->process_priv)) {
		ret = -EBADF;
		goto fail_free_id;
	}
	context->device = dev_priv->device;
	context->dev_priv = dev_priv;
	context->proc_priv = dev_priv->process_priv;