mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
Merge "disp: msm: Check QSEECOM response only if message length is not 0"
This commit is contained in:
commit
16282cc5e4
1 changed files with 4 additions and 1 deletions
|
|
@ -598,7 +598,10 @@ static void sde_hdcp_2x_msg_recvd(struct sde_hdcp_2x_ctrl *hdcp)
|
|||
goto exit;
|
||||
}
|
||||
|
||||
out_msg = (u32)hdcp->app_data.response.data[0];
|
||||
if (hdcp->app_data.response.length == 0)
|
||||
out_msg = INVALID_MESSAGE;
|
||||
else
|
||||
out_msg = (u32)hdcp->app_data.response.data[0];
|
||||
|
||||
pr_debug("[tz]: %s\n", sde_hdcp_2x_message_name(out_msg));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue