]> git.baikalelectronics.ru Git - kernel.git/commit
drm: logicvc: fix error code in logicvc_layer_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Jun 2022 12:08:53 +0000 (15:08 +0300)
committerPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 24 Jun 2022 15:03:42 +0000 (17:03 +0200)
commit2a1875edc0b4c44f821628eb6ad7170343403081
treeb7e266e39016c4a6f891bd4bcbed1204894c593e
parent242bd0e97427d0e8c6a2ed4a67cc55fd522b379f
drm: logicvc: fix error code in logicvc_layer_init()

Return -EINVAL if logicvc_layer_formats_lookup() fails.  Don't return
success.

Fixes: 03b72aa1419a ("drm: Add support for the LogiCVC display controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/Yqh6VdNiDvJYMOQ+@kili
drivers/gpu/drm/logicvc/logicvc_layer.c