Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[Epic-ID: ODUHIGH-538][Issue-ID: ODUHIGH-575] Deallocating the variables allocated...
[o-du/l2.git]
/
src
/
5gnrsch
/
sch_utils.c
diff --git
a/src/5gnrsch/sch_utils.c
b/src/5gnrsch/sch_utils.c
index
8ee6fa6
..
3e8b23a
100644
(file)
--- a/
src/5gnrsch/sch_utils.c
+++ b/
src/5gnrsch/sch_utils.c
@@
-1199,6
+1199,7
@@
SchUeCb* schGetUeCb(SchCellCb *cellCb, uint16_t crnti)
**/
void schInitUlSlot(SchUlSlotInfo *schUlSlotInfo)
{
**/
void schInitUlSlot(SchUlSlotInfo *schUlSlotInfo)
{
+ uint8_t ueIdx = 0;
CmLList *node = NULLP, *next = NULLP;
FreePrbBlock *freeBlock;
CmLList *node = NULLP, *next = NULLP;
FreePrbBlock *freeBlock;
@@
-1227,9
+1228,11
@@
void schInitUlSlot(SchUlSlotInfo *schUlSlotInfo)
freeBlock->endPrb = MAX_NUM_RB-1;
addNodeToLList(&schUlSlotInfo->prbAlloc.freePrbBlockList, freeBlock, NULL);
}
freeBlock->endPrb = MAX_NUM_RB-1;
addNodeToLList(&schUlSlotInfo->prbAlloc.freePrbBlockList, freeBlock, NULL);
}
-
- schUlSlotInfo->puschCurrentPrb = PUSCH_START_RB;
- schUlSlotInfo->schPuschInfo = NULLP;
+
+ for(ueIdx = 0; ueIdx < MAX_NUM_UE; ueIdx++)
+ {
+ schUlSlotInfo->schPuschInfo[ueIdx] = NULLP;
+ }
}
/**
}
/**
@@
-2113,12
+2116,14
@@
uint32_t schCalY(uint8_t csId, uint32_t prevY)
uint8_t schUpdValY(SchUeCb *ueCb, SchPdcchInfo *pdcchInfo)
{
uint8_t slotIdx = 0;
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)
{
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++)
}
for(slotIdx= 0 ; slotIdx < ueCb->cellCb->numSlots; slotIdx++)