diff options
Diffstat (limited to 'linux-core/drm_ioctl.c')
-rw-r--r-- | linux-core/drm_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_ioctl.c b/linux-core/drm_ioctl.c index 9b1069a1..62d5a6e4 100644 --- a/linux-core/drm_ioctl.c +++ b/linux-core/drm_ioctl.c @@ -197,7 +197,7 @@ int DRM(getmap)( struct inode *inode, struct file *filp, idx = map.offset; down(&dev->struct_sem); - if (idx < 0 || idx >= dev->map_count) { + if (idx < 0) { up(&dev->struct_sem); return -EINVAL; } |