Handle NULL return of pullTpool()

This commit is contained in:
Robert Schmidt
2022-08-16 14:41:02 +02:00
parent 178e2773ed
commit d73e1a4133
9 changed files with 30 additions and 2 deletions
+2
View File
@@ -740,6 +740,8 @@ void pusch_procedures_fromsplit(uint8_t *bufferZone, int bufSize, PHY_VARS_eNB *
while (proc->nbDecode > 0) {
notifiedFIFO_elt_t *req=pullTpool(proc->respDecode, proc->threadPool);
if (req == NULL)
break; // Tpool has been stopped
postDecode(proc, req);
delNotifiedFIFO_elt(req);
}