fixeria has submitted this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/16358 )

Change subject: trxcon/sched_trx.c: fix potential NULL-pointer dereference
......................................................................

trxcon/sched_trx.c: fix potential NULL-pointer dereference

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

Approvals:
  fixeria: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/host/trxcon/sched_trx.c b/src/host/trxcon/sched_trx.c
index 37d1acf..eb6f3dc 100644
--- a/src/host/trxcon/sched_trx.c
+++ b/src/host/trxcon/sched_trx.c
@@ -264,6 +264,8 @@

        /* Choose proper multiframe layout */
        ts->mf_layout = sched_mframe_layout(config, tn);
+       if (!ts->mf_layout)
+               return -EINVAL;
        if (ts->mf_layout->chan_config != config)
                return -EINVAL;


--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/16358
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: If1ecd9f5a70fa448327c62d38d76c8443b939248
Gerrit-Change-Number: 16358
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <axilira...@gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilira...@gmail.com>
Gerrit-MessageType: merged

Reply via email to