MFL: Don't install irq handler unless the driver has been initialized.
parent
ce514e08aa
commit
a172ee2a18
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue