msm: eva: put kref after processing deprecated message
Fixes: 681ecf595a ("msm: eva: Adding kref count for cvp_get_inst_from_id")
Change-Id: I7b9703ae78420f53e31f94ddb7c53fdfddad789f
This commit is contained in:
committed by
Michael Bestas
parent
f95d094a69
commit
f7ff340dec
@@ -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;
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user