This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/25735 ) Change subject: tbf: Assert if FSM allocation fails ...................................................................... tbf: Assert if FSM allocation fails Change-Id: Ib3db7a554a4467814785df08e3772455bf00b7d5 --- M src/tbf.cpp 1 file changed, 3 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified dexter: Looks good to me, approved diff --git a/src/tbf.cpp b/src/tbf.cpp index bda96af..7ebd268 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -122,13 +122,16 @@ memset(&state_fsm, 0, sizeof(state_fsm)); state_fsm.tbf = this; state_fsm.fi = osmo_fsm_inst_alloc(&tbf_fsm, this, &state_fsm, LOGL_INFO, NULL); + OSMO_ASSERT(state_fsm.fi); memset(&ul_ass_fsm, 0, sizeof(ul_ass_fsm)); ul_ass_fsm.tbf = this; ul_ass_fsm.fi = osmo_fsm_inst_alloc(&tbf_ul_ass_fsm, this, &ul_ass_fsm, LOGL_INFO, NULL); + OSMO_ASSERT(ul_ass_fsm.fi); memset(&dl_ass_fsm, 0, sizeof(dl_ass_fsm)); dl_ass_fsm.tbf = this; dl_ass_fsm.fi = osmo_fsm_inst_alloc(&tbf_dl_ass_fsm, this, &dl_ass_fsm, LOGL_INFO, NULL); + OSMO_ASSERT(dl_ass_fsm.fi); m_rlc.init(); m_llc.init(); -- To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/25735 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Change-Id: Ib3db7a554a4467814785df08e3772455bf00b7d5 Gerrit-Change-Number: 25735 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier at sysmocom.de> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211011/bc3ebeca/attachment.htm>