[PATCH 10/10] drm/exynos: checked for null pointer
Seung-Woo Kim
sw0312.kim at samsung.com
Fri Nov 4 05:09:59 PDT 2011
Signed-off-by: Seung-Woo Kim <sw0312.kim at samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
---
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 4092f41..2d7a03c 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
@@ -290,7 +290,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)
@@ -301,7 +302,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);
}
MODULE_AUTHOR("Inki Dae <inki.dae at samsung.com>");
--
1.7.4.1
More information about the dri-devel
mailing list