Commit 3463ff67 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Dave Airlie

drm/rcar-du: Don't ignore rcar_du_crtc_create() return value

Handle error cases correctly.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 7c6ca304
...@@ -191,8 +191,11 @@ int rcar_du_modeset_init(struct rcar_du_device *rcdu) ...@@ -191,8 +191,11 @@ int rcar_du_modeset_init(struct rcar_du_device *rcdu)
if (ret < 0) if (ret < 0)
return ret; return ret;
for (i = 0; i < ARRAY_SIZE(rcdu->crtcs); ++i) for (i = 0; i < ARRAY_SIZE(rcdu->crtcs); ++i) {
rcar_du_crtc_create(rcdu, i); ret = rcar_du_crtc_create(rcdu, i);
if (ret < 0)
return ret;
}
rcdu->used_crtcs = 0; rcdu->used_crtcs = 0;
rcdu->num_crtcs = i; rcdu->num_crtcs = i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment