diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c b/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c index 53fab0d9..d1560cad 100644 --- a/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c | |||
@@ -172,7 +172,7 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg | |||
172 | if ((_IOC_TYPE(cmd) != NVHOST_GPU_IOCTL_MAGIC) || | 172 | if ((_IOC_TYPE(cmd) != NVHOST_GPU_IOCTL_MAGIC) || |
173 | (_IOC_NR(cmd) == 0) || | 173 | (_IOC_NR(cmd) == 0) || |
174 | (_IOC_NR(cmd) > NVHOST_GPU_IOCTL_LAST)) | 174 | (_IOC_NR(cmd) > NVHOST_GPU_IOCTL_LAST)) |
175 | return -EFAULT; | 175 | return -EINVAL; |
176 | 176 | ||
177 | BUG_ON(_IOC_SIZE(cmd) > NVHOST_GPU_IOCTL_MAX_ARG_SIZE); | 177 | BUG_ON(_IOC_SIZE(cmd) > NVHOST_GPU_IOCTL_MAX_ARG_SIZE); |
178 | 178 | ||