diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index 30988462..88c8debf 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -558,7 +558,8 @@ static int nvgpu_gpu_get_cpu_time_correlation_info( | |||
558 | int err; | 558 | int err; |
559 | u32 i; | 559 | u32 i; |
560 | 560 | ||
561 | if (args->count > NVGPU_GPU_GET_CPU_TIME_CORRELATION_INFO_MAX_COUNT) | 561 | if (args->count > NVGPU_GPU_GET_CPU_TIME_CORRELATION_INFO_MAX_COUNT || |
562 | args->source_id != NVGPU_GPU_GET_CPU_TIME_CORRELATION_INFO_SRC_ID_TSC) | ||
562 | return -EINVAL; | 563 | return -EINVAL; |
563 | 564 | ||
564 | samples = nvgpu_kzalloc(g, args->count * | 565 | samples = nvgpu_kzalloc(g, args->count * |