IRQ must be assigned and enabled or this will hang

main
Jon Smirl 2005-07-11 18:27:39 +00:00
parent 07d23f9c60
commit 7130662aa0
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ int drm_wait_vblank(DRM_IOCTL_ARGS)
if (!drm_core_check_feature(dev, DRIVER_IRQ_VBL))
return -EINVAL;
if (!dev->irq)
if ((!dev->irq) || (!dev->irq_enabled))
return -EINVAL;
DRM_COPY_FROM_USER_IOCTL(vblwait, argp, sizeof(vblwait));