Integrated bug fix from David S. Miller (a wait queue removal bug)
authorJeff Hartmann <jhartmann@valinux.com>
Tue, 21 Nov 2000 16:18:47 +0000 (16:18 +0000)
committerJeff Hartmann <jhartmann@valinux.com>
Tue, 21 Nov 2000 16:18:47 +0000 (16:18 +0000)
linux/dma.c

index 5cc3ec3..56dd244 100644 (file)
@@ -405,6 +405,7 @@ int drm_dma_enqueue(drm_device_t *dev, drm_dma_t *d)
                        schedule();
                        if (signal_pending(current)) {
                                atomic_dec(&q->use_count);
+                               remove_wait_queue(&q->write_queue, &entry);
                                return -EINTR;
                        }
                }