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

Commit 97bdcfd4 authored by suchawla's avatar suchawla Committed by Gerrit - the friendly Code Review server
Browse files

msm: cvp: fix for arbitrary command packet sending to CVP FW



After checking packet id invalid go to exit, do not process
the packet.

Change-Id: I07452d45aaa286d7e0974bc4d2009f1fa8ed82e4
Signed-off-by: default avatarsuchawla <suchawla@codeaurora.org>
parent 6d869ca4
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -923,9 +923,7 @@ static int msm_cvp_session_process_hfi(
		dprintk(CVP_ERR, "%s incorrect packet %d, %x\n", __func__,
				in_pkt->pkt_data[0],
				in_pkt->pkt_data[1]);
		offset = in_offset;
		buf_num = in_buf_num;
		signal = HAL_NO_RESP;
		goto exit;
	} else {
		offset = cvp_hfi_defs[pkt_idx].buf_offset;
		buf_num = cvp_hfi_defs[pkt_idx].buf_num;