summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_drv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index dba0a7ba..8a675790 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -615,9 +615,10 @@ int drm_ioctl(struct inode *inode, struct file *filp,
if (cmd & IOC_IN) {
if (copy_from_user(kdata, (void __user *)arg,
- _IOC_SIZE(cmd)) != 0)
+ _IOC_SIZE(cmd)) != 0) {
retcode = -EACCES;
- goto err_i1;
+ goto err_i1;
+ }
}
if (!func) {