Skip to contentSkip to conversation

drm/exynos: fimd: check whether exynos_drm_crtc_create succeed or not

PATCH Applied Hyungwon Hwang 3 participants 3 messages Apr 1, 2015 – Apr 7, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/exynos: fimd: check whether exynos_drm_crtc_create succeed or not

From the commit "drm/exynos: fix the execution order in FIMD initialization" (598285bfdce46d7c47632a2ba4b980f60be4a677), the error checking code is removed improperly. This patch fix the regression.

---
 drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/exynos/exynos_drm_fimd.c +2 -0
index 31dfa80..15cee94 100644
@@ -1060,6 +1060,8 @@ static int fimd_bind(struct device *dev, struct device *master, void *data)
 	ctx->crtc = exynos_drm_crtc_create(drm_dev, ctx->pipe,
 					   EXYNOS_DISPLAY_TYPE_LCD,
 					   &fimd_crtc_ops, ctx);
+	if (IS_ERR(ctx->crtc))
+		return PTR_ERR(ctx->crtc);
 
 	if (ctx->display)
 		exynos_drm_create_enc_conn(drm_dev, ctx->display);
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Hi Hyungwon,

2015-04-01 Hyungwon Hwang <[email protected]>:

Quoted 14 lines

From the commit "drm/exynos: fix the execution order in FIMD initialization" (598285bfdce46d7c47632a2ba4b980f60be4a677), the error checking code is removed improperly. This patch fix the regression.

---
 drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/exynos/exynos_drm_fimd.c +0 -0
index 31dfa80..15cee94 100644

drivers/gpu/drm/exynos/exynos_drm_fimd.c static int fimd_bind(struct device *dev, struct device *master, void *data) · line 1064

Quoted 5 lines
drivers/gpu/drm/exynos/exynos_drm_fimd.c +2 -0
@@ -1060,6 +1060,8 @@ static int fimd_bind(struct device *dev, struct device *master, void *data)
 	ctx->crtc = exynos_drm_crtc_create(drm_dev, ctx->pipe,
 					   EXYNOS_DISPLAY_TYPE_LCD,
 					   &fimd_crtc_ops, ctx);
+	if (IS_ERR(ctx->crtc))
+		return PTR_ERR(ctx->crtc);

My current clean up patch set fixes this and I hope it will be merged soon. It is part of "drm/exynos: remove struct *_win_data abstraction on planes" patch.

Gustavo
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer Applied
#2 lore raw
In reply to Hyungwon Hwang
Quoted 3 lines · Hyungwon Hwang
Quoted 1 line

From the commit "drm/exynos: fix the execution order in FIMD

initialization" (598285bfdce46d7c47632a2ba4b980f60be4a677), the error checking code is removed improperly. This patch fix the regression.

Applied.

Thanks,
Inki Dae

Quoted 12 lines
---
 drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/exynos/exynos_drm_fimd.c +0 -0
index 31dfa80..15cee94 100644

drivers/gpu/drm/exynos/exynos_drm_fimd.c static int fimd_bind(struct device *dev, struct device *master, void *data) · line 1067

Quoted 8 lines
drivers/gpu/drm/exynos/exynos_drm_fimd.c +2 -0
@@ -1060,6 +1060,8 @@ static int fimd_bind(struct device *dev, struct device *master, void *data)
 	ctx->crtc = exynos_drm_crtc_create(drm_dev, ctx->pipe,
 					   EXYNOS_DISPLAY_TYPE_LCD,
 					   &fimd_crtc_ops, ctx);
+	if (IS_ERR(ctx->crtc))
+		return PTR_ERR(ctx->crtc);
 
 	if (ctx->display)
 		exynos_drm_create_enc_conn(drm_dev, ctx->display);

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel