Change in osmocom-bb[master]: trxcon/sched_trx.c: fix potential NULL-pointer dereference

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Sun Dec 1 13:11:42 UTC 2019


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 <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191201/4579dbe6/attachment.htm>


More information about the gerrit-log mailing list