mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Merge "msm: kgsl: Limit the syncpoint count for AUX commands"
This commit is contained in:
commit
bcf13b6504
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue