diff options
Diffstat (limited to 'linux/i810_dma.c')
-rw-r--r-- | linux/i810_dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/i810_dma.c b/linux/i810_dma.c index 2adc71c2..2f90cbb6 100644 --- a/linux/i810_dma.c +++ b/linux/i810_dma.c @@ -242,7 +242,6 @@ static int i810_unmap_buffer(drm_buf_t *buf) static int i810_dma_get_buffer(drm_device_t *dev, drm_i810_dma_t *d, struct file *filp) { - drm_file_t *priv = filp->private_data; drm_buf_t *buf; drm_i810_buf_priv_t *buf_priv; int retcode = 0; @@ -906,7 +905,7 @@ void i810_reclaim_buffers(struct file *filp) drm_buf_t *buf = dma->buflist[ i ]; drm_i810_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, I810_BUF_CLIENT, I810_BUF_FREE); |