mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-28 12:10:13 +01:00
MFL: Don't install irq handler unless the driver has been initialized.
This commit is contained in:
parent
ce514e08aa
commit
a172ee2a18
2 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue