osmocom-bb/src/host/trxcon/src
Vadim Yanitskiy ae0bb5e1c7 trxcon: allocate memory in l1ctl_server_start()
Calling l1ctl_server_shutdown() whenever the server is not initialized
will result in accessing uninitialized values.  This can happen if we
goto exit before l1ctl_server_start() was called.

Initializing the server with zeroes is not an option, because we need
to initilize llist_head and osmo_fd structures with proper values.

Allocate and initialize struct l1ctl_server in l1ctl_server_start(),
deinitialize and free() in l1ctl_server_shutdown().

Change-Id: Idf13914fd0b0ae09b2ce5ece1f4203ebcae05d6e
Related: CID#275254
2022-07-22 17:31:05 +07:00
..
Makefile.am trxcon: cosmetic: rename l1ctl_link.[ch] to l1ctl_server.[ch] 2022-07-21 18:03:17 +07:00
l1ctl.c trxcon: call osmo_timer_del() unconditionally 2022-07-22 03:21:22 +07:00
l1ctl_server.c trxcon: allocate memory in l1ctl_server_start() 2022-07-22 17:31:05 +07:00
logging.c trxcon: group *.c files into 'src' directory 2022-07-04 17:41:09 +07:00
sched_clck.c trxcon: remove unused #imports in sched_clck.c 2022-07-22 17:31:05 +07:00
sched_lchan_common.c trxcon: abstract out the scheduler API from L1CTL/TRXD/TRXC 2022-07-12 19:29:13 +07:00
sched_lchan_desc.c trxcon: abstract out the scheduler API from L1CTL/TRXD/TRXC 2022-07-12 19:29:13 +07:00
sched_lchan_pdtch.c trxcon: abstract out the scheduler API from L1CTL/TRXD/TRXC 2022-07-12 19:29:13 +07:00
sched_lchan_rach.c trxcon: abstract out the scheduler API from L1CTL/TRXD/TRXC 2022-07-12 19:29:13 +07:00
sched_lchan_sch.c trxcon: abstract out the scheduler API from L1CTL/TRXD/TRXC 2022-07-12 19:29:13 +07:00
sched_lchan_tchf.c trxcon: abstract out the scheduler API from L1CTL/TRXD/TRXC 2022-07-12 19:29:13 +07:00
sched_lchan_tchh.c trxcon: abstract out the scheduler API from L1CTL/TRXD/TRXC 2022-07-12 19:29:13 +07:00
sched_lchan_xcch.c trxcon: abstract out the scheduler API from L1CTL/TRXD/TRXC 2022-07-12 19:29:13 +07:00
sched_mframe.c trxcon: merge 'sched_trx.h' and 'scheduler.h' into 'l1sched.h' 2022-07-11 05:12:16 +07:00
sched_prim.c trxcon: cosmetic: s/ts_list/ts/ in struct l1sched_state 2022-07-18 20:34:01 +07:00
sched_trx.c trxcon: introduce and use struct 'trxcon_inst' 2022-07-21 17:37:36 +07:00
trx_if.c trxcon: fix NULL pointer dereference in trx_if_open() 2022-07-22 17:31:05 +07:00
trxcon.c trxcon: allocate memory in l1ctl_server_start() 2022-07-22 17:31:05 +07:00