From: Laurent Pinchart Date: Tue, 1 Apr 2014 11:03:52 +0000 (+0200) Subject: drm/rcar-du: Handle encoder initialization failures X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9961b22716ddf59ca307fe862f93ff0ea919952;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/rcar-du: Handle encoder initialization failures The rcar_du_encoder_init() function can fail and return an error code. Don't ignore it. Signed-off-by: Laurent Pinchart Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/rcar-du/rcar_du_kms.c b/drivers/gpu/drm/rcar-du/rcar_du_kms.c index fbeabd9a281f..a87edfac111f 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_kms.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_kms.c @@ -248,7 +248,10 @@ int rcar_du_modeset_init(struct rcar_du_device *rcdu) continue; } - rcar_du_encoder_init(rcdu, pdata->type, pdata->output, pdata); + ret = rcar_du_encoder_init(rcdu, pdata->type, pdata->output, + pdata); + if (ret < 0) + return ret; } /* Set the possible CRTCs and possible clones. There's always at least