summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/drm_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 85e3ba47..dba0a7ba 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -599,7 +599,7 @@ int drm_ioctl(struct inode *inode, struct file *filp,
else if ((nr >= DRM_COMMAND_END) || (nr < DRM_COMMAND_BASE))
ioctl = &drm_ioctls[nr];
else {
- errno = -EINVAL;
+ retcode = -EINVAL;
goto err_i1;
}