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

Commit 0c82d611 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru
Browse files

msm: mdss: hdmi: fix uninitialized pointer issue in HDCP driver



Fix an issue related to an uninitialized pointer. Under certain
conditions, it is possible that the driver tries to free memory
whose reference is supposed to be held by this pointer and can
lead to a crash since the pointer doesn't hold a valid reference.

Change-Id: Ic2e16e1d67bc881bd2ae6d00a51ba12835c7a4f7
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent 3f08a569
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1193,7 +1193,7 @@ static void hdcp_lib_msg_recvd(struct hdcp_lib_handle *handle)
	struct hdcp_rcvd_msg_req *req_buf;
	struct hdcp_rcvd_msg_rsp *rsp_buf;
	uint32_t msglen;
	char *msg;
	char *msg = NULL;

	if (!handle || !handle->qseecom_handle ||
		!handle->qseecom_handle->sbuf) {