Skip to content

Commit 739b4e7

Browse files
Dan Carpenterrobclark
authored andcommitted
drm/msm/dsi: Fix an error code in msm_dsi_modeset_init()
Return an error code if msm_dsi_manager_validate_current_config(). Don't return success. Fixes: 8b03ad3 ("drm/msm/dsi: Use one connector for dual DSI mode") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/20211001123308.GF2283@kili Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent 90b7c1c commit 739b4e7

File tree

1 file changed

+3
-1
lines changed
  • drivers/gpu/drm/msm/dsi

1 file changed

+3
-1
lines changed

drivers/gpu/drm/msm/dsi/dsi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,10 @@ int msm_dsi_modeset_init(struct msm_dsi *msm_dsi, struct drm_device *dev,
215215
goto fail;
216216
}
217217

218-
if (!msm_dsi_manager_validate_current_config(msm_dsi->id))
218+
if (!msm_dsi_manager_validate_current_config(msm_dsi->id)) {
219+
ret = -EINVAL;
219220
goto fail;
221+
}
220222

221223
msm_dsi->encoder = encoder;
222224

0 commit comments

Comments
 (0)