osmocom-bb/src/host/trxcon
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
..
include trxcon: allocate memory in l1ctl_server_start() 2022-07-22 17:31:05 +07:00
m4 trxcon: separate the scheduler into libl1sched.la 2022-07-12 19:29:13 +07:00
src trxcon: allocate memory in l1ctl_server_start() 2022-07-22 17:31:05 +07:00
.gitignore trxcon: separate the scheduler into libl1sched.la 2022-07-12 19:29:13 +07:00
Makefile.am trxcon: separate the scheduler into libl1sched.la 2022-07-12 19:29:13 +07:00
configure.ac trxcon: separate the scheduler into libl1sched.la 2022-07-12 19:29:13 +07:00