Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bbcc098 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "smcinvoke: Move IPC_LOG before deleting cb_txn"

parents 94394643 07e8c4b8
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -1194,15 +1194,14 @@ static void process_tzcb_req(void *buf, size_t buf_len, struct file **arr_filp)
	}
	--cb_reqs_inflight;
	memcpy(buf, cb_req, buf_len);
	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);
	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);

}