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
Merge "SLice Mapping to RLC DB [ Jira Id - ODUHIGH-371 ]"
[o-du/l2.git]
/
src
/
5gnrrlc
/
rlc_upr_inf_mgr.c
diff --git
a/src/5gnrrlc/rlc_upr_inf_mgr.c
b/src/5gnrrlc/rlc_upr_inf_mgr.c
index
4cbc070
..
422b43d
100755
(executable)
--- a/
src/5gnrrlc/rlc_upr_inf_mgr.c
+++ b/
src/5gnrrlc/rlc_upr_inf_mgr.c
@@
-244,6
+244,7
@@
Pst *pst,
RlcCfgInfo *cfg
)
{
RlcCfgInfo *cfg
)
{
+ uint8_t cfgIdx = 0;
RlcCb *tRlcCb;
RlcUlCfgTmpData *cfgTmpData;
RlcCb *tRlcCb;
RlcUlCfgTmpData *cfgTmpData;
@@
-252,6
+253,10
@@
RlcCfgInfo *cfg
#if (ERRCLASS & ERRCLS_INT_PAR)
if (pst->dstInst >= MAX_RLC_INSTANCES)
{
#if (ERRCLASS & ERRCLS_INT_PAR)
if (pst->dstInst >= MAX_RLC_INSTANCES)
{
+ for(cfgIdx=0; cfgIdx<cfg->numEnt; cfgIdx++)
+ {
+ RLC_PST_FREE(pst->region, pst->pool, cfg->entCfg[cfgIdx].snssai, sizeof(Snssai));
+ }
RLC_PST_FREE(pst->region, pst->pool, cfg, sizeof(RlcCfgInfo));
return RFAILED;
}
RLC_PST_FREE(pst->region, pst->pool, cfg, sizeof(RlcCfgInfo));
return RFAILED;
}
@@
-262,6
+267,10
@@
RlcCfgInfo *cfg
if (cfgTmpData == NULLP)
{
if (cfgTmpData == NULLP)
{
+ for(cfgIdx=0; cfgIdx<cfg->numEnt; cfgIdx++)
+ {
+ RLC_PST_FREE(pst->region, pst->pool, cfg->entCfg[cfgIdx].snssai, sizeof(Snssai));
+ }
RLC_PST_FREE(pst->region, pst->pool, cfg, sizeof(RlcCfgInfo));
return RFAILED;
}
RLC_PST_FREE(pst->region, pst->pool, cfg, sizeof(RlcCfgInfo));
return RFAILED;
}
@@
-276,6
+285,10
@@
RlcCfgInfo *cfg
if (rlcDbmAddUlTransaction(tRlcCb, cfgTmpData) != ROK)
{
DU_LOG("\nERROR --> RLC_UL : Addition to UL transId Lst Failed");
if (rlcDbmAddUlTransaction(tRlcCb, cfgTmpData) != ROK)
{
DU_LOG("\nERROR --> RLC_UL : Addition to UL transId Lst Failed");
+ for(cfgIdx=0; cfgIdx<cfg->numEnt; cfgIdx++)
+ {
+ RLC_PST_FREE(pst->region, pst->pool, cfg->entCfg[cfgIdx].snssai, sizeof(Snssai));
+ }
RLC_PST_FREE(pst->region, pst->pool, cfg, sizeof(RlcCfgInfo));
return RFAILED;
RLC_PST_FREE(pst->region, pst->pool, cfg, sizeof(RlcCfgInfo));
return RFAILED;