]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
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 <inki.dae@samsung.com>
Thu, 22 Nov 2012 08:55:17 +0000 (17:55 +0900)
commitc69d5276704e1a9c771de57c0a2e7b69ea3ea578
tree1d5903d35a8805f10fc7b25040b6e46c620a4b7a
parent77b1c0362ffdb11128590a7248f3f8c434ab42f2
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