drm/exynos: Fix potential NULL pointer dereference in exynos_drm_encoder.c
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 19 Nov 2012 09:20:30 +0000 (14:50 +0530)
committerInki Dae <daeinki@gmail.com>
Thu, 29 Nov 2012 11:30:33 +0000 (03:30 -0800)
commitfdd66e06ce71cdcdb515ef355d4f2fc90e151503
tree988145984f51b7e788f47096947472a6f332675a
parent6ecf18f9e769f77e918f2a18b35faf2a4844ad1a
drm/exynos: Fix potential NULL pointer dereference in exynos_drm_encoder.c

Check overlay_ops is not NULL as checked in the previous 'if' condition.
Fixes the following smatch error:
drivers/gpu/drm/exynos/exynos_drm_encoder.c:509 exynos_drm_encoder_plane_disable()
error: we previously assumed 'overlay_ops' could be null (see line 499)

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_encoder.c