Merge "smcinvoke: Move IPC_LOG before deleting cb_txn"

This commit is contained in:
qctecmdr 2021-05-02 06:41:52 -07:00 committed by Gerrit - the friendly Code Review server
commit 2bbcc09826

View File

@ -1194,16 +1194,15 @@ out:
}
--cb_reqs_inflight;
memcpy(buf, cb_req, buf_len);
IPC_LOG("result=%d tzhandle=0x%08x op=0x%02x counts=0x%04x, cb_reqs_inflight=%d",
cb_req->result,
cb_req->hdr.tzhandle, cb_req->hdr.op, cb_req->hdr.counts,
cb_reqs_inflight);
kref_put(&cb_txn->ref_cnt, delete_cb_txn);
if (srvr_info)
kref_put(&srvr_info->ref_cnt, destroy_cb_server);
mutex_unlock(&g_smcinvoke_lock);
IPC_LOG("result=%d tzhandle=0x%08x op=0x%02x counts=0x%04x, cb_reqs_inflight=%d",
cb_req->result,
cb_req->hdr.tzhandle, cb_req->hdr.op, cb_req->hdr.counts,
cb_reqs_inflight);
}
static int marshal_out_invoke_req(const uint8_t *buf, uint32_t buf_size,