Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66760a1c authored by Christopher Braga's avatar Christopher Braga
Browse files

drm/msm/hdcp: Check QSEECOM response only if message length is not 0



The received message logic in the SDE HDCP layer reads the HDCP QSEECOM
response content regardless of the declared response length. Update
this logic to only use the response content if the response length
is non zero.

Change-Id: Ie39923302a5478e0dd39dd5ceaade70b2e4125a3
Signed-off-by: default avatarChristopher Braga <cbraga@codeaurora.org>
parent 7b2ef2bf
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -722,6 +722,9 @@ static void sde_hdcp_2x_msg_recvd(struct sde_hdcp_2x_ctrl *hdcp)
		goto exit;
	}

	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",