X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2F5gnrmac%2Frg_cfg.c;h=64a66d3b4c2cb35739593fbb45ff7f605c82c55f;hb=1d6200fae3b85714f8d9ddec062a01c8b9faca23;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..64a66d3b4 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 */ @@ -688,8 +688,12 @@ RgErrInfo *errInfo 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 */