summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-14 18:33:48 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-10-23 22:05:49 +0330
commitf7da2a39bb2f86e1de052cd2f6b6ae8e748a93f6 (patch)
tree3d62ba59bca592bd58c008853ba537ae3d75840d
parent1720f547d9019b1e33ef4d57c393c3b92e58d214 (diff)
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
-rw-r--r--src/host/trxcon/sched_trx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/trxcon/sched_trx.c b/src/host/trxcon/sched_trx.c
index 88d9d97b..1effeb7c 100644
--- a/src/host/trxcon/sched_trx.c
+++ b/src/host/trxcon/sched_trx.c
@@ -223,6 +223,9 @@ int sched_trx_configure_ts(struct trx_instance *trx, int ts_num,
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 */