diff options
author | Jon Smirl <jonsmirl@yahoo.com> | 2004-10-07 00:40:16 +0000 |
---|---|---|
committer | Jon Smirl <jonsmirl@yahoo.com> | 2004-10-07 00:40:16 +0000 |
commit | 6619c5d941b86452405222a5b44a546dd0aa45c7 (patch) | |
tree | eecc3f5b6076ba1e307c3e351e0fb25f3270e663 /linux | |
parent | 61d36f6179f535de4a37c58cb7dade2b6035883d (diff) |
Fix drm_exit to allow for DRM(global) being deleted when framebuffer is
loaded.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drm_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drm_drv.h b/linux/drm_drv.h index dc3c96ef..00761eb3 100644 --- a/linux/drm_drv.h +++ b/linux/drm_drv.h @@ -664,7 +664,7 @@ static void __exit drm_exit (void) DRM_DEBUG( "\n" ); if (DRM(fb_loaded)) { if (DRM(global)) { - for (i = 0; i < DRM(global)->cards_limit; i++) { + for (i = 0; DRM(global) && (i < DRM(global)->cards_limit); i++) { minor = &DRM(global)->minors[i]; dev = minor->dev; DRM_DEBUG("fb loaded release minor %d\n", dev->minor); |