X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_cfg.c;h=e45326b92bf200346067b850551f16e4915787a6;hb=de6a435729e3cad9d4a66329080b8206a64f452c;hp=31c2ad4a4550675edec4632d1771661444368886;hpb=eb34581efbc9dc5697d7326c25e00a2a3c8be17b;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_cfg.c b/src/5gnrmac/rg_cfg.c index 31c2ad4a4..e45326b92 100755 --- a/src/5gnrmac/rg_cfg.c +++ b/src/5gnrmac/rg_cfg.c @@ -44,7 +44,7 @@ #include "rg_env.h" /* MAC environmental includes*/ #include "rg.h" /* MAC includes*/ #include "rg_err.h" /* MAC error includes*/ - +#include "mac_utils.h" /* header/extern include files (.x) */ #include "rgu.x" /* RGU types */ #include "tfu.x" /* RGU types */ @@ -603,7 +603,8 @@ RgErrInfo *errInfo SuId rguUlSapId = 0; SuId rguDlSapId = 0; /* RLC SAP to allocate flowCntrlInd buffer*/ - Pst *pst ; + /* Commented below to resolve compilation warning */ + //Pst *pst ; errInfo->errCause = RGERR_CFG_CRG_CELL_CFG; @@ -686,10 +687,15 @@ RgErrInfo *errInfo rgUpdtCellCnt(inst,RG_CFG_ADD); errInfo->errCause = RGERR_NONE; - pst = &rgCb[inst].rguSap[rguDlSapId].sapCfg.sapPst; + /* Commented below to resolve compilation warning */ + //pst = &rgCb[inst].rguSap[rguDlSapId].sapCfg.sapPst; /* Allocate a buffer for flowCntrlInd.*/ - SGetSBuf(pst->region, pst->pool, (Data **)&cell->flowCntrlInd, - sizeof(RguFlowCntrlInd)); + MAC_ALLOC(cell->flowCntrlInd, sizeof(RguFlowCntrlInd)); + if(cell->flowCntrlInd == NULLP) + { + DU_LOG("ERROR --> MAC : rgCFGCrgCellCfg(): Memory allocation failed"); + return RFAILED; + } return ROK; } /* rgCFGCrgCellCfg */