Skip to content

Commit

Permalink
Merge "drm/msm/hdcp: Check QSEECOM response only if message length is…
Browse files Browse the repository at this point in the history
… not 0"
  • Loading branch information
qctecmdr authored and Gerrit - the friendly Code Review server committed Jul 9, 2019
2 parents 4b08e23 + 1485514 commit 0bcb2a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/gpu/drm/msm/sde_hdcp_2x.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,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("message received from TZ: %s\n",
sde_hdcp_2x_message_name(out_msg));
Expand Down

0 comments on commit 0bcb2a9

Please sign in to comment.