diff options
author | Robert Noland <rnoland@2hip.net> | 2009-03-31 13:33:18 -0500 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2009-03-31 13:36:04 -0500 |
commit | 51d6346f9f3c425f49e57d185530c6bcaeb94f5e (patch) | |
tree | 58aabcf71a7ba600b88d71fb62868b749b80e8e8 /linux-core | |
parent | cd5c66c659168cbe2e3229ebf8be79f764ed0ee1 (diff) |
Move drm_vblank_cleanup() after lastclose.
This may prevent a possible panic on shutdown.
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c index c68e237c..72f0e98b 100644 --- a/linux-core/drm_drv.c +++ b/linux-core/drm_drv.c @@ -397,11 +397,11 @@ static void drm_cleanup(struct drm_device * dev) return; } - drm_vblank_cleanup(dev); - drm_lastclose(dev); drm_fence_manager_takedown(dev); + drm_vblank_cleanup(dev); + if (drm_core_has_MTRR(dev) && drm_core_has_AGP(dev) && dev->agp && dev->agp->agp_mtrr >= 0) { int retval; |