summaryrefslogtreecommitdiff
path: root/linux-core/intel_fb.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2007-10-15 11:51:19 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2007-10-15 11:51:19 +0100
commitcc9be8ac323e47616e48adebc5cc85c654524b45 (patch)
tree78a7525c65007416028152c85a57d9d69ad57cc2 /linux-core/intel_fb.c
parentd69721a14a8954420b4e0022ecf10bb040c6b807 (diff)
Fix some buffer teardown problems.
Diffstat (limited to 'linux-core/intel_fb.c')
-rw-r--r--linux-core/intel_fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/intel_fb.c b/linux-core/intel_fb.c
index 04fd0fdd..ecfab3ed 100644
--- a/linux-core/intel_fb.c
+++ b/linux-core/intel_fb.c
@@ -657,6 +657,7 @@ int intelfb_remove(struct drm_device *dev, struct drm_crtc *crtc)
unregister_framebuffer(info);
framebuffer_release(info);
drm_mem_reg_iounmap(dev, &fb->bo->mem, fb->virtual_base);
+ drm_bo_usage_deref_locked(&fb->bo);
drm_framebuffer_destroy(fb);
}
return 0;