fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/28810 )
Change subject: trxcon: assert *ts is not NULL in l1sched_set_lchans ......................................................................
trxcon: assert *ts is not NULL in l1sched_set_lchans
Change-Id: I53b40b31f20fc9aefdfcac1406c465d226e5fde0 Related: CID#275337 --- M src/host/trxcon/src/sched_trx.c 1 file changed, 1 insertion(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/10/28810/1
diff --git a/src/host/trxcon/src/sched_trx.c b/src/host/trxcon/src/sched_trx.c index 556fe6a..030cbc9 100644 --- a/src/host/trxcon/src/sched_trx.c +++ b/src/host/trxcon/src/sched_trx.c @@ -418,10 +418,7 @@ int rc = 0;
/* Prevent NULL-pointer deference */ - if (ts == NULL) { - LOGP_SCHEDC(ts->sched, LOGL_ERROR, "Timeslot isn't configured\n"); - return -EINVAL; - } + OSMO_ASSERT(ts != NULL);
/* Iterate over all allocated lchans */ llist_for_each_entry(lchan, &ts->lchans, list) {