drm/exynos: fix not to remain exynos_gem_obj as a leak
authorYoungJun Cho <yj44.cho@samsung.com>
Mon, 1 Jul 2013 02:17:12 +0000 (11:17 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 4 Jul 2013 06:55:36 +0000 (15:55 +0900)
commitc58c1599cd5c97977c44047272b56b4db455bbba
tree3f99572ec87b0ffe5fc246709026565c47558629
parent8eed2641df55f7a3e69699b50a63f5705533886f
drm/exynos: fix not to remain exynos_gem_obj as a leak

The exynos_drm_gem_create() only calls drm_gem_object_release()
when exynos_drm_alloc_buf() is failed, and exynos_gem_obj remains
as a leak, which is allocated in exynos_drm_gem_init().
So this patch fixes it not to remain as a leak.

Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_gem.c