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

Commit c2448613 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 the race between context create and destroy" into msm-4.9

parents c6b27ec1 dd90d68e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1775,9 +1775,9 @@ long kgsl_ioctl_drawctxt_create(struct kgsl_device_private *dev_priv,
	/* Commit the pointer to the context in context_idr */
	write_lock(&device->context_lock);
	idr_replace(&device->context_idr, context, context->id);
	param->drawctxt_id = context->id;
	write_unlock(&device->context_lock);

	param->drawctxt_id = context->id;
done:
	return result;
}