diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2011-11-04 04:31:41 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2011-11-15 00:58:46 -0500 |
commit | b0e0f85631f9d905095d2896a952430f5eb0aba1 (patch) | |
tree | e1a6a6cc4c8aaf07d4afe531dd3f11997885f789 /drivers | |
parent | d2716c896d305fb5d3d0d7f58394c17841ed2967 (diff) |
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')
-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 f15da9581a1e..866f419f485b 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) | |||
283 | struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; | 283 | struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; |
284 | struct exynos_drm_overlay *overlay = data; | 284 | struct exynos_drm_overlay *overlay = data; |
285 | 285 | ||
286 | overlay_ops->mode_set(manager->dev, overlay); | 286 | if (overlay_ops && overlay_ops->mode_set) |
287 | overlay_ops->mode_set(manager->dev, overlay); | ||
287 | } | 288 | } |
288 | 289 | ||
289 | void exynos_drm_encoder_crtc_disable(struct drm_encoder *encoder, void *data) | 290 | 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) | |||
294 | 295 | ||
295 | DRM_DEBUG_KMS("\n"); | 296 | DRM_DEBUG_KMS("\n"); |
296 | 297 | ||
297 | overlay_ops->disable(manager->dev); | 298 | if (overlay_ops && overlay_ops->disable) |
299 | overlay_ops->disable(manager->dev); | ||
298 | 300 | ||
299 | /* | 301 | /* |
300 | * crtc is already detached from encoder and last | 302 | * crtc is already detached from encoder and last |