summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/as_gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/as_gk20a.c b/drivers/gpu/nvgpu/gk20a/as_gk20a.c
index 27608cec..dd5a5cf3 100644
--- a/drivers/gpu/nvgpu/gk20a/as_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/as_gk20a.c
@@ -284,7 +284,8 @@ long gk20a_as_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
284 gk20a_idle(g->dev); 284 gk20a_idle(g->dev);
285 285
286 if ((err == 0) && (_IOC_DIR(cmd) & _IOC_READ)) 286 if ((err == 0) && (_IOC_DIR(cmd) & _IOC_READ))
287 err = copy_to_user((void __user *)arg, buf, _IOC_SIZE(cmd)); 287 if (copy_to_user((void __user *)arg, buf, _IOC_SIZE(cmd)))
288 err = -EFAULT;
288 289
289 return err; 290 return err;
290} 291}