From a172ee2a18b715a6de9b8e914aecd8414a4f3b2d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 26 Apr 2003 23:04:22 +0000 Subject: MFL: Don't install irq handler unless the driver has been initialized. --- bsd/drm_dma.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bsd/drm_dma.h') diff --git a/bsd/drm_dma.h b/bsd/drm_dma.h index 526faee2..10c26e37 100644 --- a/bsd/drm_dma.h +++ b/bsd/drm_dma.h @@ -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; -- cgit v1.2.3