summaryrefslogtreecommitdiff
path: root/linux/i810_dma.c
diff options
context:
space:
mode:
authorGareth Hughes <gareth@users.sourceforge.net>2001-06-18 12:59:42 +0000
committerGareth Hughes <gareth@users.sourceforge.net>2001-06-18 12:59:42 +0000
commit3a410059b43027c08bcb0fef307dd4ee7734197e (patch)
tree39f50c57ebef8e38881fc69cf4dcc704170bec5a /linux/i810_dma.c
parentd87c873df05eb3a110316c7af2358553fa7f988e (diff)
Enable shared IRQs in DMA template, use in i810 driver.
Diffstat (limited to 'linux/i810_dma.c')
-rw-r--r--linux/i810_dma.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/i810_dma.c b/linux/i810_dma.c
index 8a5503ea..25caca6b 100644
--- a/linux/i810_dma.c
+++ b/linux/i810_dma.c
@@ -1123,6 +1123,11 @@ int i810_clear_bufs(struct inode *inode, struct file *filp,
return -EINVAL;
}
+ /* GH: Someone's doing nasty things... */
+ if (!dev->dev_private) {
+ return -EINVAL;
+ }
+
i810_dma_dispatch_clear( dev, clear.flags,
clear.clear_color,
clear.clear_depth );