From 3cf46fba794d98eb5923fece92d9efc62807169d Mon Sep 17 00:00:00 2001 From: Satya Rama Aditya Pinapala Date: Wed, 21 Oct 2020 21:17:19 -0700 Subject: [PATCH] disp: msm: dsi: error handling during debugfs command transfer Change clears the DSI TX command buffer allocated for debugfs command transfers and destroys the command packets in case of error during command transfer. Change-Id: Ia1e822b9b60d44f7eba325116d416916419471fa Signed-off-by: Satya Rama Aditya Pinapala --- msm/dsi/dsi_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/dsi/dsi_display.c b/msm/dsi/dsi_display.c index 82715197a1..b32a066b0b 100644 --- a/msm/dsi/dsi_display.c +++ b/msm/dsi/dsi_display.c @@ -1089,7 +1089,7 @@ int dsi_display_cmd_transfer(struct drm_connector *connector, &cmds->msg); if (rc < 0) { DSI_ERR("failed to send command, rc=%d\n", rc); - goto end; + break; } if (cmds->post_wait_ms) usleep_range(cmds->post_wait_ms*1000,