msm: camera: memmgr: Add missing calls of put buf to avoid leak

This change add missing calls to put cpu buf in few scenarios.

CRs-Fixed: 3578162
Change-Id: Iab6aa0324b5072390b38df296c7acee00f5102a1
Signed-off-by: Vikram Sharma <quic_vikramsa@quicinc.com>
このコミットが含まれているのは:
Vikram Sharma
2023-08-30 17:41:43 +05:30
コミット ec8012559c
18個のファイルの変更261行の追加59行の削除

ファイルの表示

@@ -1990,11 +1990,13 @@ static void cam_jpeg_mgr_dump_pf_data(
&jpeg_pid_mid_args, sizeof(jpeg_pid_mid_args));
if (rc) {
CAM_ERR(CAM_JPEG, "CAM_JPEG_CMD_MATCH_PID_MID failed %d", rc);
cam_packet_util_put_packet_addr(pf_req_info->packet_handle);
return;
}
if (!jpeg_pid_mid_args.pid_match_found) {
CAM_INFO(CAM_JPEG, "This context data is not matched with pf pid and mid");
cam_packet_util_put_packet_addr(pf_req_info->packet_handle);
return;
}
pf_args->pf_context_info.resource_type = jpeg_pid_mid_args.match_res;