summaryrefslogtreecommitdiff
path: root/linux-core/drm_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/drm_dma.c')
-rw-r--r--linux-core/drm_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_dma.c b/linux-core/drm_dma.c
index 66886309..035dd35b 100644
--- a/linux-core/drm_dma.c
+++ b/linux-core/drm_dma.c
@@ -157,7 +157,7 @@ void drm_free_buffer(drm_device_t * dev, drm_buf_t * buf)
void drm_core_reclaim_buffers(struct file *filp)
{
drm_file_t *priv = filp->private_data;
- drm_device_t *dev = priv->dev;
+ drm_device_t *dev = priv->head->dev;
drm_device_dma_t *dma = dev->dma;
int i;