X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Frg_sch_cmn.c;fp=src%2F5gnrsch%2Frg_sch_cmn.c;h=924c48831ff000c2e3aca5121fb12ca6921aa1ea;hb=284fc2e85cb5008061a7f8c6d07947a1c6209432;hp=a4f1406d58bad16e54dad88d1ba68bd7516af765;hpb=377a2d180b617d4df038e1780d4a8de98d7c125f;p=o-du%2Fl2.git diff --git a/src/5gnrsch/rg_sch_cmn.c b/src/5gnrsch/rg_sch_cmn.c index a4f1406d5..924c48831 100755 --- a/src/5gnrsch/rg_sch_cmn.c +++ b/src/5gnrsch/rg_sch_cmn.c @@ -44,7 +44,6 @@ #include "rg_sch_inf.h" #include "rg_sch.h" #include "rg_sch_cmn.h" - /* header/extern include files (.x) */ #include "tfu.x" /* TFU types */ #include "lrg.x" /* layer management typedefs for MAC */ @@ -53,6 +52,7 @@ #include "rg_sch_inf.x" /* typedefs for Scheduler */ #include "rg_sch.x" /* typedefs for Scheduler */ #include "rg_sch_cmn.x" /* typedefs for Scheduler */ +#include "sch_utils.h" #ifdef MAC_SCH_STATS #include "lrg.x" /* Stats Structures */ #endif /* MAC_SCH_STATS */ @@ -28098,10 +28098,10 @@ uint8_t newTxMode if(!(ueDl->mimoInfo.forceTD & RG_SCH_CMN_TD_TXMODE_RECFG)) { /* Mem Alloc */ - if(SGetSBuf(cell->rgmSap->sapCfg.sapPst.region, - cell->rgmSap->sapCfg.sapPst.pool, (Data**)&txModeChgInd, - sizeof(RgmTransModeInd)) != ROK) + SCH_ALLOC(txModeChgInd, sizeof(RgmTransModeInd)); + if(txModeChgInd == NULLP) { + DU_LOG("ERROR --> SCH : rgSCHCmnSendTxModeInd(): Memory allocation failed"); return; } RG_SCH_FILL_RGM_TRANSMODE_IND(ue->ueId, cell->cellId, newTxMode, txModeChgInd);