From 98b5d4d26f4e97613afccfe8cb0bb05ad96bc960 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Fri, 1 Dec 2000 14:22:31 +0000 Subject: merge trunk into tdfx-3-0-0-branch freeze tag before merge is tdfx-3-0-0-20001201-freeze --- linux/dma.c | 1 + linux/sis_mm.c | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/linux/dma.c b/linux/dma.c index 5cc3ec36..56dd2441 100644 --- a/linux/dma.c +++ b/linux/dma.c @@ -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; } } diff --git a/linux/sis_mm.c b/linux/sis_mm.c index 1eee73c8..4c2b5a6c 100644 --- a/linux/sis_mm.c +++ b/linux/sis_mm.c @@ -79,7 +79,7 @@ int sis_fb_alloc(struct inode *inode, struct file *filp, unsigned int cmd, int retval = 0; if (copy_from_user(&fb, (drm_sis_mem_t *)arg, sizeof(fb))) - return -EFAULT; + return -EFAULT; req.size = fb.size; sis_malloc(&req); @@ -113,7 +113,7 @@ int sis_fb_free(struct inode *inode, struct file *filp, unsigned int cmd, int retval = 0; if (copy_from_user(&fb, (drm_sis_mem_t *)arg, sizeof(fb))) - return -EFAULT; + return -EFAULT; if(!fb.free){ return -1; @@ -155,7 +155,7 @@ int sis_agp_init(struct inode *inode, struct file *filp, unsigned int cmd, drm_sis_agp_t agp; if (copy_from_user(&agp, (drm_sis_agp_t *)arg, sizeof(agp))) - return -EFAULT; + return -EFAULT; AgpHeap = mmInit(agp.offset, agp.size); @@ -175,7 +175,7 @@ int sis_agp_alloc(struct inode *inode, struct file *filp, unsigned int cmd, return -1; if (copy_from_user(&agp, (drm_sis_mem_t *)arg, sizeof(agp))) - return -EFAULT; + return -EFAULT; block = mmAllocMem(AgpHeap, agp.size, 0, 0); if(block){ @@ -211,7 +211,7 @@ int sis_agp_free(struct inode *inode, struct file *filp, unsigned int cmd, return -1; if (copy_from_user(&agp, (drm_sis_mem_t *)arg, sizeof(agp))) - return -EFAULT; + return -EFAULT; if(!agp.free){ return -1; -- cgit v1.2.3