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: I97a396eca869d2b0f26b02b179a68a1ee049d4b6
Signed-off-by: suchawla <suchawla@codeaurora.org>
This commit is contained in:
suchawla 2020-08-18 16:46:25 +05:30 • committed by Gerrit - the friendly Code Review server
commit 31c9c94ba1

View file

@ -182,9 +182,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;