osmocom-bb/src/host/trxcon/include/osmocom/bb
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
..
trxcon trxcon: allocate memory in l1ctl_server_start() 2022-07-22 17:31:05 +07:00
Makefile.am trxcon: group header files into 'include/osmocom/bb/trxcon' 2022-07-02 19:02:49 +07:00