Commit c5f400e9 authored by Cedric Roux's avatar Cedric Roux

fix: do not access array before check

parent fc46dcff
...@@ -4637,13 +4637,13 @@ int generate_ue_dlsch_params_from_dci(int frame, ...@@ -4637,13 +4637,13 @@ int generate_ue_dlsch_params_from_dci(int frame,
break; break;
} }
dlsch0_harq = dlsch[0]->harq_processes[harq_pid];
if (harq_pid>=8) { if (harq_pid>=8) {
LOG_E(PHY,"Format 1: harq_pid=%d >= 8\n", harq_pid); LOG_E(PHY,"Format 1: harq_pid=%d >= 8\n", harq_pid);
return(-1); return(-1);
} }
dlsch0_harq = dlsch[0]->harq_processes[harq_pid];
if((mcs>28) && (dlsch0_harq->round == 0) ) if((mcs>28) && (dlsch0_harq->round == 0) )
{ {
// DCI false detection // DCI false detection
......
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