Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08b710f8 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Tomi Valkeinen
Browse files

drm: omapdrm: gem: Don't free mmap offset twice



The drm_gem_free_mmap_offset() call in omap_gem_free_object() is
redundant as the same function is called from drm_gem_object_release().
Remove it.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 74128a23
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1319,8 +1319,6 @@ void omap_gem_free_object(struct drm_gem_object *obj)
	list_del(&omap_obj->mm_list);
	spin_unlock(&priv->list_lock);

	drm_gem_free_mmap_offset(obj);

	/* this means the object is still pinned.. which really should
	 * not happen.  I think..
	 */