X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_slot_ind.c;h=0b075013292bc526b51e002d482cdc6105005260;hb=ba78fa13b01e0729fe0a6a7a18cbf1d52cdcda1c;hp=e058b785c7d91ff15e5f8e16468d8375f1cdc023;hpb=2193e4cf01012809495be026097e8d7eacb9f0ac;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_slot_ind.c b/src/5gnrmac/mac_slot_ind.c index e058b785c..0b0750132 100644 --- a/src/5gnrmac/mac_slot_ind.c +++ b/src/5gnrmac/mac_slot_ind.c @@ -342,11 +342,12 @@ uint8_t macProcSlotInd(SlotIndInfo slotInd) **/ uint8_t fapiMacSlotInd(Pst *pst, SlotIndInfo *slotInd) { - uint8_t ret; - VOLATILE uint32_t startTime=0; + uint8_t ret = ROK; + volatile uint32_t startTime=0; +#ifdef ODU_SLOT_IND_DEBUG_LOG DU_LOG("\nMAC : Slot Indication received"); - +#endif /*starting Task*/ ODU_START_TASK(&startTime, PID_MAC_TTI_IND); @@ -355,6 +356,7 @@ uint8_t fapiMacSlotInd(Pst *pst, SlotIndInfo *slotInd) if(ret != ROK) { DU_LOG("\nMAC : Sending of slot ind msg from MAC to SCH failed"); + MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo)); return ret; } @@ -362,6 +364,7 @@ uint8_t fapiMacSlotInd(Pst *pst, SlotIndInfo *slotInd) if(ret != ROK) { DU_LOG("\nMAC : macProcSlotInd failed"); + MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo)); return ret; } @@ -370,12 +373,13 @@ uint8_t fapiMacSlotInd(Pst *pst, SlotIndInfo *slotInd) if(ret != ROK) { DU_LOG("\nMAC :Sending of slot ind msg from MAC to DU APP failed"); + MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo)); return ret; } /*stoping Task*/ ODU_STOP_TASK(startTime, PID_MAC_TTI_IND); - + MAC_FREE_SHRABL_BUF(pst->region, pst->pool, slotInd, sizeof(SlotIndInfo)); return ret; } /* fapiMacSlotInd */