[PATCH -next] drm/logicvc: Fix error return code in logicvc_layer_init()
Paul Kocialkowski
paul.kocialkowski at bootlin.com
Fri Jun 24 14:47:43 UTC 2022
Hi Yang,
On Thu 23 Jun 22, 22:05, Yang Yingliang wrote:
> Fix error return code when logicvc_layer_formats_lookup() fails.
>
> Fixes: efeeaefe9be5 ("drm: Add support for the LogiCVC display controller")
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Signed-off-by: Yang Yingliang <yangyingliang at huawei.com>
Good catch! Yet Dan submitted a similar fix earlier, which is already
on its way to the tree.
Thanks!
Paul
> ---
> drivers/gpu/drm/logicvc/logicvc_layer.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/logicvc/logicvc_layer.c b/drivers/gpu/drm/logicvc/logicvc_layer.c
> index fbebe966f93a..54b5931d879f 100644
> --- a/drivers/gpu/drm/logicvc/logicvc_layer.c
> +++ b/drivers/gpu/drm/logicvc/logicvc_layer.c
> @@ -489,6 +489,7 @@ static int logicvc_layer_init(struct logicvc_drm *logicvc,
>
> formats = logicvc_layer_formats_lookup(layer);
> if (!formats) {
> + ret = -EINVAL;
> drm_err(drm_dev, "Failed to lookup formats for layer #%d\n",
> index);
> goto error;
> --
> 2.25.1
>
--
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220624/f46014a0/attachment.sig>
More information about the dri-devel
mailing list