summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_fops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_fops.c b/linux-core/drm_fops.c
index 20cbf343..fd1704b8 100644
--- a/linux-core/drm_fops.c
+++ b/linux-core/drm_fops.c
@@ -394,7 +394,7 @@ int drm_release(struct inode *inode, struct file *filp)
}
}
- if (drm_core_check_feature(dev, DRIVER_HAVE_DMA)) {
+ if (drm_core_check_feature(dev, DRIVER_HAVE_DMA) && !dev->driver->release) {
dev->driver->reclaim_buffers(dev, filp);
}