aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 90288ec7c284..3644c94c0a17 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -477,7 +477,9 @@ long drm_ioctl(struct file *filp,
477 retcode = -EFAULT; 477 retcode = -EFAULT;
478 goto err_i1; 478 goto err_i1;
479 } 479 }
480 } 480 } else
481 memset(kdata, 0, _IOC_SIZE(cmd));
482
481 if (ioctl->flags & DRM_UNLOCKED) 483 if (ioctl->flags & DRM_UNLOCKED)
482 retcode = func(dev, kdata, file_priv); 484 retcode = func(dev, kdata, file_priv);
483 else { 485 else {