summaryrefslogtreecommitdiff
path: root/shared-core/nouveau_fifo.c
diff options
context:
space:
mode:
authorBen Skeggs <darktama@iinet.net.au>2006-11-18 10:09:29 +1100
committerBen Skeggs <darktama@iinet.net.au>2006-11-18 10:09:29 +1100
commit9ac7a8b0b4c0431b605c3f8d0b4a696903010c51 (patch)
tree496766b875d07977379c1d97215dd8de37a763f1 /shared-core/nouveau_fifo.c
parente9194dd1b068666dd94e73d95dc3cd031a89a6b7 (diff)
Only return FIFO number if the FIFO is marked as in use..
Diffstat (limited to 'shared-core/nouveau_fifo.c')
-rw-r--r--shared-core/nouveau_fifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/nouveau_fifo.c b/shared-core/nouveau_fifo.c
index 441bde40..b6fc613c 100644
--- a/shared-core/nouveau_fifo.c
+++ b/shared-core/nouveau_fifo.c
@@ -564,7 +564,7 @@ int nouveau_fifo_id_get(drm_device_t* dev, DRMFILE filp)
int i;
for(i=0;i<nouveau_fifo_number(dev);i++)
- if (dev_priv->fifos[i].filp == filp)
+ if (dev_priv->fifos[i].used && dev_priv->fifos[i].filp == filp)
return i;
return -1;
}