aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/drm/drm_fops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_fops.c b/drivers/char/drm/drm_fops.c
index 906794247aeb..7f9b00c6d244 100644
--- a/drivers/char/drm/drm_fops.c
+++ b/drivers/char/drm/drm_fops.c
@@ -251,7 +251,7 @@ int drm_release( struct inode *inode, struct file *filp )
251 } 251 }
252 } 252 }
253 253
254 if (drm_core_check_feature(dev, DRIVER_HAVE_DMA)) 254 if (drm_core_check_feature(dev, DRIVER_HAVE_DMA) && !dev->driver->release)
255 { 255 {
256 dev->driver->reclaim_buffers(dev, filp); 256 dev->driver->reclaim_buffers(dev, filp);
257 } 257 }