laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/20282 )
Change subject: sched_lchan_tchh: initialize meas_avg with zeros ...................................................................... sched_lchan_tchh: initialize meas_avg with zeros in function rx_tchh_fn() the variable meas_avg is not initalized. This is not always a problem, since most of the time trx_sched_meas_avg() is populating the variable properly. In cases where a FACCH is transmitted (chan_state->ul_ongoing_facch = true) the variable is left unpopulated. In order to have at least stable values for those cases, initalize the variable with zeros for the ongoing facch phase. Change-Id: I5c3c1c41d22f9edaaf6bd4478dd04f090dca12a9 Fixes: CID#214480 --- M src/osmo-bts-trx/sched_lchan_tchh.c 1 file changed, 1 insertion(+), 0 deletions(-) Approvals: laforge: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/osmo-bts-trx/sched_lchan_tchh.c b/src/osmo-bts-trx/sched_lchan_tchh.c index c400542..18d90bb 100644 --- a/src/osmo-bts-trx/sched_lchan_tchh.c +++ b/src/osmo-bts-trx/sched_lchan_tchh.c @@ -125,6 +125,7 @@ memcpy(*bursts_p, *bursts_p + 232, 232); memcpy(*bursts_p + 232, *bursts_p + 464, 232); ber10k = 0; + memset(&meas_avg, 0, sizeof(meas_avg)); goto bfi; } -- To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/20282 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bts Gerrit-Branch: master Gerrit-Change-Id: I5c3c1c41d22f9edaaf6bd4478dd04f090dca12a9 Gerrit-Change-Number: 20282 Gerrit-PatchSet: 4 Gerrit-Owner: dexter <pma...@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: Vadim Yanitskiy <vyanits...@sysmocom.de> Gerrit-Reviewer: dexter <pma...@sysmocom.de> Gerrit-Reviewer: laforge <lafo...@osmocom.org> Gerrit-CC: pespin <pes...@sysmocom.de> Gerrit-MessageType: merged