fix: do not access array before check

This commit is contained in:
Cedric Roux
2017-02-11 12:25:46 +01:00
parent fc46dcff36
commit c5f400e9d3
+2 -2
View File
@@ -4637,13 +4637,13 @@ int generate_ue_dlsch_params_from_dci(int frame,
break;
}
dlsch0_harq = dlsch[0]->harq_processes[harq_pid];
if (harq_pid>=8) {
LOG_E(PHY,"Format 1: harq_pid=%d >= 8\n", harq_pid);
return(-1);
}
dlsch0_harq = dlsch[0]->harq_processes[harq_pid];
if((mcs>28) && (dlsch0_harq->round == 0) )
{
// DCI false detection