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

Commit c58687b8 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: Limit the syncpoint count for AUX commands" into kernel.lnx.4.19.r23-rel

parents ae3250b4 f9df487e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2129,6 +2129,10 @@ long kgsl_ioctl_gpu_aux_command(struct kgsl_device_private *dev_priv,
	if (!(param->flags & KGSL_GPU_AUX_COMMAND_TIMELINE))
		return -EINVAL;

	if ((param->flags & KGSL_GPU_AUX_COMMAND_SYNC) &&
		(param->numsyncs > KGSL_MAX_SYNCPOINTS))
		return -EINVAL;

	context = kgsl_context_get_owner(dev_priv, param->context_id);
	if (!context)
		return -EINVAL;