From 1325c67ffd2b963da868c527d71e9a1e889b7171 Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Sat, 6 Jun 2020 12:48:49 +0300 Subject: ts_fsm: Properly cleanup the FSM on cleanup. Though it looks like this code is never actually executed because TS in the current model TS FSM instances are created on the BTS structure allocation and are never destroyed. Change-Id: Ie642d201c7b1333321319cd5220c9778d7e6138e --- src/osmo-bsc/timeslot_fsm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osmo-bsc/timeslot_fsm.c b/src/osmo-bsc/timeslot_fsm.c index b577a12f4..d44c29f5c 100644 --- a/src/osmo-bsc/timeslot_fsm.c +++ b/src/osmo-bsc/timeslot_fsm.c @@ -794,7 +794,11 @@ static void ts_fsm_allstate(struct osmo_fsm_inst *fi, uint32_t event, void *data static void ts_fsm_cleanup(struct osmo_fsm_inst *fi, enum osmo_fsm_term_cause cause) { + LOG_TS(ts, LOGL_DEBUG, "cleaning up with cause %d\n", cause); + struct gsm_bts_trx_ts *ts = ts_fi_ts(fi); _count_borken_on_teardown(fi); + ts_terminate_lchan_fsms(ts); + ts->fi = NULL; } #define S(x) (1 << (x)) -- cgit v1.2.3