From 43033e20b6c299d913c510352e04d7b2428caaf6 Mon Sep 17 00:00:00 2001 From: Laurent THOMAS <laurent.thomas@open-cells.com> Date: Tue, 24 May 2022 09:09:57 +0200 Subject: [PATCH] Avoid SEGV in nr_decode_pucch0() --- openair1/PHY/NR_TRANSPORT/pucch_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair1/PHY/NR_TRANSPORT/pucch_rx.c b/openair1/PHY/NR_TRANSPORT/pucch_rx.c index fa177b98f50..83093494916 100644 --- a/openair1/PHY/NR_TRANSPORT/pucch_rx.c +++ b/openair1/PHY/NR_TRANSPORT/pucch_rx.c @@ -190,7 +190,7 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB, pucch_pdu->bit_len_harq,pucch_pdu->sr_flag); NR_gNB_UCI_STATS_t *uci_stats=NULL; - NR_gNB_UCI_STATS_t *first_uci_stats=NULL; + NR_gNB_UCI_STATS_t *first_uci_stats = gNB->uci_stats; for (int i=0;i<NUMBER_OF_NR_UCI_STATS_MAX;i++) if (gNB->uci_stats[i].rnti == pucch_pdu->rnti) { uci_stats = &gNB->uci_stats[i]; -- GitLab