X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2F5gnrmac%2Frg_lmm.c;h=68321b7137e22a3d663d1cdff9fd14bea26e1254;hb=1931d49496d91723b7c54c63db50ff4ee8ff03b6;hp=9e49c55efc0bcdb8b75919a486e5f03d3ef6128f;hpb=aa73421b9f5306c786cc5b757043b3d71705bbf2;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_lmm.c b/src/5gnrmac/rg_lmm.c index 9e49c55ef..68321b713 100755 --- a/src/5gnrmac/rg_lmm.c +++ b/src/5gnrmac/rg_lmm.c @@ -2114,7 +2114,7 @@ int MacHdlCellCfgReq Pst cfmPst; uint16_t ret = ROK; RgCellCb *cellCb; - MacCellCb *macCellCb; + MacCellCb *macCellCb = NULLP; Inst inst = pst->dstInst; cmMemset((U8 *)&cfmPst, 0, sizeof(Pst)); @@ -2135,6 +2135,7 @@ int MacHdlCellCfgReq DU_LOG("\nMAC : macCellCb is NULL at handling of macCellCfg\n"); return RFAILED; } + memset(macCellCb, 0, sizeof(MacCellCb)); macCb.macCell = macCellCb; macCb.macCell->cellId = macCellCfg->cellId; /* Send cell cfg to scheduler */