summaryrefslogtreecommitdiff
path: root/bsd
diff options
context:
space:
mode:
Diffstat (limited to 'bsd')
-rw-r--r--bsd/drm_dma.h3
1 files changed, 3 insertions, 0 deletions
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;