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

Commit 16282cc5 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents c0035372 6071b67a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -598,6 +598,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("[tz]: %s\n", sde_hdcp_2x_message_name(out_msg));