X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_utils.c;fp=src%2F5gnrsch%2Fsch_utils.c;h=3e8b23afd22ac6e73bb9ddb54abef3cbd38138ce;hb=8264f7ce2ba9f4a1874c4ec1018127cc27fa12cb;hp=aeb8bdd03c7cba6f59be924cb652c722563eb38c;hpb=c052424ea15134144f188487fa6161dbf49583d2;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_utils.c b/src/5gnrsch/sch_utils.c index aeb8bdd03..3e8b23afd 100644 --- a/src/5gnrsch/sch_utils.c +++ b/src/5gnrsch/sch_utils.c @@ -2116,12 +2116,14 @@ uint32_t schCalY(uint8_t csId, uint32_t prevY) uint8_t schUpdValY(SchUeCb *ueCb, SchPdcchInfo *pdcchInfo) { uint8_t slotIdx = 0; - - SCH_ALLOC(pdcchInfo->y, (sizeof(uint32_t) * ueCb->cellCb->numSlots)); if(pdcchInfo->y == NULLP) { - DU_LOG("\nERROR --> SCH: Memory Allocation of Y failed"); - return RFAILED; + SCH_ALLOC(pdcchInfo->y, (sizeof(uint32_t) * ueCb->cellCb->numSlots)); + if(pdcchInfo->y == NULLP) + { + DU_LOG("\nERROR --> SCH: Memory Allocation of Y failed"); + return RFAILED; + } } for(slotIdx= 0 ; slotIdx < ueCb->cellCb->numSlots; slotIdx++)