osmocom-bb/src/host/trxcon/include/osmocom/bb/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
..
Makefile.am trxcon: cosmetic: rename l1ctl_link.[ch] to l1ctl_server.[ch] 2022-07-21 18:03:17 +07:00
l1ctl.h trxcon: cosmetic: rename l1ctl_link.[ch] to l1ctl_server.[ch] 2022-07-21 18:03:17 +07:00
l1ctl_proto.h trxcon: group header files into 'include/osmocom/bb/trxcon' 2022-07-02 19:02:49 +07:00
l1ctl_server.h trxcon: allocate memory in l1ctl_server_start() 2022-07-22 17:31:05 +07:00
l1sched.h trxcon: introduce and use struct 'trxcon_inst' 2022-07-21 17:37:36 +07:00
logging.h trxcon: group header files into 'include/osmocom/bb/trxcon' 2022-07-02 19:02:49 +07:00
trx_if.h trxcon: cosmetic: rename 'trx->fsm' to 'trx->fi' 2022-07-21 18:03:17 +07:00
trxcon.h trxcon: get rid of GEN_MASK macro, define it locally 2022-07-21 18:03:17 +07:00