Merge "disp: msm: Check QSEECOM response only if message length is not 0"

This commit is contained in:
qctecmdr
2019-05-03 02:04:50 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -598,6 +598,9 @@ static void sde_hdcp_2x_msg_recvd(struct sde_hdcp_2x_ctrl *hdcp)
goto exit; goto exit;
} }
if (hdcp->app_data.response.length == 0)
out_msg = INVALID_MESSAGE;
else
out_msg = (u32)hdcp->app_data.response.data[0]; out_msg = (u32)hdcp->app_data.response.data[0];
pr_debug("[tz]: %s\n", sde_hdcp_2x_message_name(out_msg)); pr_debug("[tz]: %s\n", sde_hdcp_2x_message_name(out_msg));