diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-04-08 08:25:34 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-04-14 05:34:37 -0400 |
commit | 5e19c06d0e570a347669acc2b850c2f730090b60 (patch) | |
tree | 3d55002278a915090fb2eac2ae5da9620e829cdc /drivers/gpu | |
parent | d4586604acbd2e58921e0363533b9797b0235275 (diff) |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fbdev.c | 3 |
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 002988d09021..1388ca7f87e8 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) | |||
371 | 371 | ||
372 | fbdev = to_omap_fbdev(priv->fbdev); | 372 | fbdev = to_omap_fbdev(priv->fbdev); |
373 | 373 | ||
374 | /* release the ref taken in omap_fbdev_create() */ | ||
375 | omap_gem_put_paddr(fbdev->bo); | ||
376 | |||
374 | /* this will free the backing object */ | 377 | /* this will free the backing object */ |
375 | if (fbdev->fb) { | 378 | if (fbdev->fb) { |
376 | drm_framebuffer_unregister_private(fbdev->fb); | 379 | drm_framebuffer_unregister_private(fbdev->fb); |