Skip to content

Commit

Permalink
msm: eva: put kref after processing deprecated message
Browse files Browse the repository at this point in the history
Fixes: 681ecf5 ("msm: eva: Adding kref count for cvp_get_inst_from_id")
Change-Id: I7b9703ae78420f53e31f94ddb7c53fdfddad789f
  • Loading branch information
moetayuko authored and mikeNG committed Dec 15, 2024
1 parent f95d094 commit f7ff340
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/media/platform/msm/cvp/hfi_response_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ static int hfi_process_session_cvp_msg(u32 device_id,
|| pkt->packet_type == HFI_MSG_SESSION_CVP_FD) {
u64 ktid;
u32 kdata1, kdata2;
int rc;

kdata1 = pkt->client_data.kdata1;
kdata2 = pkt->client_data.kdata2;
Expand All @@ -515,8 +516,10 @@ static int hfi_process_session_cvp_msg(u32 device_id,

msm_cvp_unmap_buf_cpu(inst, ktid);

return _deprecated_hfi_msg_process(device_id,
pkt, info, inst);
rc = _deprecated_hfi_msg_process(device_id, pkt, info,
inst);
cvp_put_inst(inst);
return rc;
}
dprintk(CVP_ERR, "Invalid deprecate_bitmask %#x\n",
inst->deprecate_bitmask);
Expand Down

0 comments on commit f7ff340

Please sign in to comment.