Commit 164d944a authored by wujing's avatar wujing

fix dlsch array overflow by rm1954 commit miss

parent 1cdca054
......@@ -2110,7 +2110,7 @@ void release_rnti_of_phy(module_id_t mod_id){
for (CC_id = 0; CC_id < MAX_NUM_CCs; CC_id++) {
eNB_PHY = RC.eNB[mod_id][CC_id];
rnti = release_rntis.UE_free_rnti[i];
for (j=0; j<=NUMBER_OF_UE_MAX; j++) {
for (j=0; j<NUMBER_OF_UE_MAX; j++) {
ulsch = eNB_PHY->ulsch[j];
if((ulsch != NULL) && (ulsch->rnti == rnti)){
LOG_I(PHY, "clean_eNb_ulsch ulsch[%d] UE %x\n", j, rnti);
......@@ -2122,6 +2122,11 @@ void release_rnti_of_phy(module_id_t mod_id){
clean_eNb_dlsch(dlsch);
}
}
ulsch = eNB_PHY->ulsch[j];//clear ulsch[NUMBER_OF_UE_MAX+1]
if((ulsch != NULL) && (ulsch->rnti == rnti)){
LOG_I(PHY, "clean_eNb_ulsch ulsch[%d] UE %x\n", j, rnti);
clean_eNb_ulsch(ulsch);
}
for(j=0; j<NUMBER_OF_UCI_VARS_MAX; j++) {
if(eNB_PHY->uci_vars[j].rnti == rnti){
LOG_I(PHY, "clean eNb uci_vars[%d] UE %x \n",j, rnti);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment