summaryrefslogtreecommitdiff
path: root/linux/i830_dma.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-03-07 23:25:47 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-03-07 23:25:47 +0000
commit7c9631e5928850e4dc85644fb6a5511f94540ad8 (patch)
tree7b2646e74eb5d08a34412257ecf142506c430824 /linux/i830_dma.c
parent6afda269546d361c1ec43e0be5aad5738548ae98 (diff)
Fix compile for gamma,i810,i830drm-filp-1-freeze
Diffstat (limited to 'linux/i830_dma.c')
-rw-r--r--linux/i830_dma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/i830_dma.c b/linux/i830_dma.c
index 6c4b34b9..26cad294 100644
--- a/linux/i830_dma.c
+++ b/linux/i830_dma.c
@@ -244,7 +244,6 @@ static int i830_unmap_buffer(drm_buf_t *buf)
static int i830_dma_get_buffer(drm_device_t *dev, drm_i830_dma_t *d,
struct file *filp)
{
- drm_file_t *priv = filp->private_data;
drm_buf_t *buf;
drm_i830_buf_priv_t *buf_priv;
int retcode = 0;
@@ -1103,7 +1102,7 @@ void i830_reclaim_buffers( struct file *filp )
drm_buf_t *buf = dma->buflist[ i ];
drm_i830_buf_priv_t *buf_priv = buf->dev_private;
- if (buf->pid == pid && buf_priv) {
+ if (buf->filp == filp && buf_priv) {
int used = cmpxchg(buf_priv->in_use, I830_BUF_CLIENT,
I830_BUF_FREE);