Add SCH NR softbuffer check

This commit is contained in:
Xavier Arteaga 2021-07-23 09:18:29 +02:00 committed by Xavier Arteaga
parent b59c330858
commit 914a2e2d31
1 changed files with 5 additions and 0 deletions

View File

@ -549,6 +549,11 @@ static int sch_nr_decode(srsran_sch_nr_t* q,
return SRSRAN_ERROR_INVALID_INPUTS;
}
if (!tb->softbuffer.rx) {
ERROR("Missing softbuffer!");
return SRSRAN_ERROR;
}
int8_t* input_ptr = e_bits;
uint32_t nof_iter_sum = 0;