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

Commit b0ab3dd9 authored by Karthik Anantha Ram's avatar Karthik Anantha Ram
Browse files

msm: camera: icp: Correct pointer increment value



Change corrects the value that the pointer should
increment when processing messages posted by FW.

Change-Id: I165911a1e9a6c97694d26449ebe1344152330374
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent e250b1b2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1257,6 +1257,7 @@ static int32_t cam_icp_mgr_process_msg(void *priv, void *data)
		rc = read_len;
		CAM_DBG(CAM_ICP, "Unable to read msg q");
	} else {
		read_len = read_len << BYTE_WORD_SHIFT;
		msg_ptr = (uint32_t *)icp_hw_mgr.msg_buf;
		while (true) {
			msg_processed_len = cam_icp_process_msg_pkt_type(
@@ -1268,7 +1269,8 @@ static int32_t cam_icp_mgr_process_msg(void *priv, void *data)

			read_len -= msg_processed_len;
			if (read_len > 0)
				msg_ptr += msg_processed_len;
				msg_ptr += (msg_processed_len >>
				BYTE_WORD_SHIFT);
			else
				break;
		}