Skip to content

Fix a segmentation fault when there is no spCellConfigDedicated with maxMIMO_Layers parameter

Luis Pereira requested to merge Fix_segfault_when_no_spCellConfigDedicated into develop

Fix a segmentation fault when there is no spCellConfigDedicated with maxMIMO_Layers parameter, for example when there is a RRCReestablishmentRequest and the spCellConfig needs to be dropped.

Thread 30 "Tpool0_-1" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff89ff9700 (LWP 55873)]
0x00005555560cda91 in nr_schedule_ue_spec (module_id=module_id@entry=0, 
    frame=frame@entry=792, slot=slot@entry=5)
    at /home/user/openairinterface5g/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c:1123
1123	    long *maxMIMO_Layers = cg->spCellConfig->spCellConfigDedicated->pdsch_ServingCellConfig->choice.setup->ext1->maxMIMO_Layers;

Merge request reports