summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2014-04-08 15:25:34 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-04-14 12:34:37 +0300
commit5e19c06d0e570a347669acc2b850c2f730090b60 (patch)
tree3d55002278a915090fb2eac2ae5da9620e829cdc
parentd4586604acbd2e58921e0363533b9797b0235275 (diff)
downloadop-kernel-dev-5e19c06d0e570a347669acc2b850c2f730090b60.zip
op-kernel-dev-5e19c06d0e570a347669acc2b850c2f730090b60.tar.gz
drm/omap: fix missing unref to fb's buf object
omap_fbdev_create() takes a reference to the fb's gem object with omap_gem_get_paddr(). However, it never releases it with omap_gem_put_paddr(). This patch adds the missing omap_gem_put_paddr() to omap_fbdev_free(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/gpu/drm/omapdrm/omap_fbdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c
index 002988d..1388ca7 100644
--- a/drivers/gpu/drm/omapdrm/omap_fbdev.c
+++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c
@@ -371,6 +371,9 @@ void omap_fbdev_free(struct drm_device *dev)
fbdev = to_omap_fbdev(priv->fbdev);
+ /* release the ref taken in omap_fbdev_create() */
+ omap_gem_put_paddr(fbdev->bo);
+
/* this will free the backing object */
if (fbdev->fb) {
drm_framebuffer_unregister_private(fbdev->fb);
OpenPOWER on IntegriCloud