Merge "msm: kgsl: Limit the syncpoint count for AUX commands"

This commit is contained in:
qctecmdr 2023-09-29 10:26:27 -07:00 • committed by Gerrit - the friendly Code Review server
commit bcf13b6504

View file

@ -2038,6 +2038,10 @@ long kgsl_ioctl_gpu_aux_command(struct kgsl_device_private *dev_priv,
(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;