commit | c2eb77ff717c3aa403f5807425a7f2b2cb67b6b3 | [log] [tgz] |
---|---|---|
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | Wed Mar 02 12:51:19 2016 +0200 |
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | Thu Mar 03 17:38:46 2016 +0200 |
tree | 84fe8bfbf7548fce6e5aa8d7f9b89dda18daf0bf | |
parent | 39cd66209db9c0e8e80e24321d9f47de8ac5c52e [diff] |
drm/omap: gem: Fix omap_gem_new() error path When an error occurs in omap_gem_new() the function calls omap_gem_free_object() to clean up. However, that function expects to be called on a fully initialized GEM object and thus crashes. Replace it by manual cleanup. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>