diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2011-11-04 17:31:41 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2011-11-15 14:58:46 +0900 |
commit | b0e0f85631f9d905095d2896a952430f5eb0aba1 (patch) | |
tree | e1a6a6cc4c8aaf07d4afe531dd3f11997885f789 /drivers/gpu | |
parent | d2716c896d305fb5d3d0d7f58394c17841ed2967 (diff) | |
download | op-kernel-dev-b0e0f85631f9d905095d2896a952430f5eb0aba1.zip op-kernel-dev-b0e0f85631f9d905095d2896a952430f5eb0aba1.tar.gz |
drm/exynos: checked for null pointer
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_encoder.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c index f15da95..866f419 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c +++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c @@ -283,7 +283,8 @@ void exynos_drm_encoder_crtc_mode_set(struct drm_encoder *encoder, void *data) struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; struct exynos_drm_overlay *overlay = data; - overlay_ops->mode_set(manager->dev, overlay); + if (overlay_ops && overlay_ops->mode_set) + overlay_ops->mode_set(manager->dev, overlay); } void exynos_drm_encoder_crtc_disable(struct drm_encoder *encoder, void *data) @@ -294,7 +295,8 @@ void exynos_drm_encoder_crtc_disable(struct drm_encoder *encoder, void *data) DRM_DEBUG_KMS("\n"); - overlay_ops->disable(manager->dev); + if (overlay_ops && overlay_ops->disable) + overlay_ops->disable(manager->dev); /* * crtc is already detached from encoder and last |