[PATCH] osmocom-bb[master]: host/trxcon/scheduler: fix TS index in sched_trx_configure_ts()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Feb 22 15:33:05 UTC 2018


Review at  https://gerrit.osmocom.org/6731

host/trxcon/scheduler: fix TS index in sched_trx_configure_ts()

TS index was not assigned after allocation of a new one.

Change-Id: I1b62218f863acf27fb1d1f46b273b345b97d33d8
---
M src/host/trxcon/sched_trx.c
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/31/6731/1

diff --git a/src/host/trxcon/sched_trx.c b/src/host/trxcon/sched_trx.c
index 88d9d97..1effeb7 100644
--- a/src/host/trxcon/sched_trx.c
+++ b/src/host/trxcon/sched_trx.c
@@ -223,6 +223,9 @@
 		ts = sched_trx_add_ts(trx, ts_num);
 		if (ts == NULL)
 			return -ENOMEM;
+
+		/* Assign TS index */
+		ts->index = ts_num;
 	}
 
 	/* Init queue primitives for TX */

-- 
To view, visit https://gerrit.osmocom.org/6731
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1b62218f863acf27fb1d1f46b273b345b97d33d8
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list