projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb6c5aa
)
cleanup framebuffers on drm unload
author
Dave Airlie
<airlied@linux.ie>
Thu, 12 Apr 2007 01:55:10 +0000
(11:55 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Thu, 12 Apr 2007 01:55:10 +0000
(11:55 +1000)
linux-core/drm_crtc.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_crtc.c
b/linux-core/drm_crtc.c
index
259ea1b
..
2f140db
100644
(file)
--- a/
linux-core/drm_crtc.c
+++ b/
linux-core/drm_crtc.c
@@
-582,7
+582,7
@@
void drm_mode_config_cleanup(drm_device_t *dev)
{
struct drm_output *output, *ot;
struct drm_crtc *crtc, *ct;
-
+ struct drm_crtc *fb, *fbt;
list_for_each_entry_safe(output, ot, &dev->mode_config.output_list, head) {
drm_output_destroy(output);
}
@@
-590,6
+590,11
@@
void drm_mode_config_cleanup(drm_device_t *dev)
list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) {
drm_crtc_destroy(crtc);
}
+
+ list_for_each_entry_safe(fb, fbt, &dev->mode_config.fb_list, head) {
+ drmfb_remove(dev, fb);
+ drm_framebuffer_destroy(fb);
+ }
}
EXPORT_SYMBOL(drm_mode_config_cleanup);