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); }