diff options
Diffstat (limited to 'linux-core/drm_fops.c')
-rw-r--r-- | linux-core/drm_fops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_fops.c b/linux-core/drm_fops.c index 410f5c81..f2de90ae 100644 --- a/linux-core/drm_fops.c +++ b/linux-core/drm_fops.c @@ -133,7 +133,7 @@ int drm_open(struct inode *inode, struct file *filp) int minor = iminor(inode); int retcode = 0; - if (!((minor >= 0) && (minor < cards_limit))) + if (!((minor >= 0) && (minor < drm_cards_limit))) return -ENODEV; if (!drm_heads[minor]) @@ -175,7 +175,7 @@ int drm_stub_open(struct inode *inode, struct file *filp) DRM_DEBUG("\n"); - if (!((minor >= 0) && (minor < cards_limit))) + if (!((minor >= 0) && (minor < drm_cards_limit))) return -ENODEV; if (!drm_heads[minor]) |