drm/exynos: fixed wrong err ptr usage and destroy call in exeception
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 15 Nov 2011 07:25:39 +0000 (16:25 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 17 Nov 2011 01:05:39 +0000 (10:05 +0900)
commitca22e3cc25f180859561f36d51bf21278db5ae11
treec7f480c59af0586198cb4ef58c4b45386fed0bf5
parent396464dfbba8f734c57346489b871e7ed64dcdd1
drm/exynos: fixed wrong err ptr usage and destroy call in exeception

- exynos_drm_buf_create() returns err pointer so NULL check is wrong.
- Case that exynos_gem_obj is not created, destroy call in exception
  handle lable uses this pointer. so instead buffer is directly used.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_gem.c