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
This commit is contained in:
Vadim Yanitskiy 2017-07-14 18:33:48 +07:00
parent ae62021dc9
commit 283fb5879c
1 changed files with 3 additions and 0 deletions

View File

@ -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 */