Skip to content

Commit

Permalink
drm: fix minor issues caused by core conversion
Browse files Browse the repository at this point in the history
The conversion to core/driver got this check in-correct.

Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Jul 7, 2005
1 parent c101f31 commit 0c7b525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/drm/drm_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,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);
}
Expand Down

0 comments on commit 0c7b525

Please sign in to comment.