MFL: Don't install irq handler unless the driver has been initialized.

main
Eric Anholt 2003-04-26 23:04:22 +00:00
parent ce514e08aa
commit a172ee2a18
2 changed files with 6 additions and 0 deletions

View File

@ -160,6 +160,9 @@ int DRM(irq_install)( drm_device_t *dev, int irq )
if ( !irq )
return DRM_ERR(EINVAL);
if (dev->dev_private == NULL)
return DRM_ERR(EINVAL);
DRM_LOCK;
if ( dev->irq ) {
DRM_UNLOCK;

View File

@ -160,6 +160,9 @@ int DRM(irq_install)( drm_device_t *dev, int irq )
if ( !irq )
return DRM_ERR(EINVAL);
if (dev->dev_private == NULL)
return DRM_ERR(EINVAL);
DRM_LOCK;
if ( dev->irq ) {
DRM_UNLOCK;