summaryrefslogtreecommitdiff
path: root/linux/mga_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/mga_dma.c')
-rw-r--r--linux/mga_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/mga_dma.c b/linux/mga_dma.c
index 64de17c7..4daa03ac 100644
--- a/linux/mga_dma.c
+++ b/linux/mga_dma.c
@@ -224,9 +224,9 @@ drm_buf_t *mga_freelist_get(drm_device_t *dev)
dev_priv->last_prim_age);
set_bit(MGA_IN_GETBUF, &dev_priv->dispatch_status);
add_wait_queue(&dev_priv->buf_queue, &entry);
- current->state = TASK_INTERRUPTIBLE;
for (;;) {
mga_dma_schedule(dev, 0);
+ current->state = TASK_INTERRUPTIBLE;
if(!test_bit(MGA_IN_GETBUF,
&dev_priv->dispatch_status))
break;