From eb20f651b94a82f535837b6b5808830629609227 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Mon, 16 Mar 2020 10:28:42 +0000 Subject: [PATCH] account for all exit points --- srsenb/src/stack/mac/mac.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srsenb/src/stack/mac/mac.cc b/srsenb/src/stack/mac/mac.cc index 5ae1a025d..3e0d53324 100644 --- a/srsenb/src/stack/mac/mac.cc +++ b/srsenb/src/stack/mac/mac.cc @@ -490,6 +490,7 @@ void mac::rach_detected(uint32_t tti, uint32_t enb_cc_idx, uint32_t preamble_idx ue_cfg.dl_cfg.tm = SRSLTE_TM1; if (scheduler.ue_cfg(rnti, ue_cfg) != SRSLTE_SUCCESS) { Error("Registering new user rnti=0x%x to SCHED\n", rnti); + rach_tprof.stop(tprof_id); return; } @@ -499,6 +500,7 @@ void mac::rach_detected(uint32_t tti, uint32_t enb_cc_idx, uint32_t preamble_idx // Add temporal rnti to the PHY if (phy_h->add_rnti(rnti, enb_cc_idx, true) != SRSLTE_SUCCESS) { Error("Registering temporal-rnti=0x%x to PHY\n", rnti); + rach_tprof.stop(tprof_id); return; }