- RachPduInfo *rachPdu;
- RachInd rachInd;
-
- rachInd.cellId = lwrMacCb.cellCb[0].cellId;
- rachInd.timingInfo.sfn = fapiRachInd->sfn;
- rachInd.timingInfo.slot = fapiRachInd->slot;
- rachInd.numPdu = fapiRachInd->numPdus;
- for(pduIdx=0; pduIdx < rachInd.numPdu; pduIdx++)
+ RachPduInfo *rachPdu = NULLP;
+ RachInd *rachInd = NULLP;
+
+ MAC_ALLOC_SHRABL_BUF(rachInd, sizeof(RachInd));
+ if(!rachInd)
+ {
+ printf("\nLWR_MAC: Memory Allocation failed in procRachInd");
+ return RFAILED;
+ }
+
+ rachInd->cellId = lwrMacCb.cellCb[0].cellId;
+ rachInd->timingInfo.sfn = fapiRachInd->sfn;
+ rachInd->timingInfo.slot = fapiRachInd->slot;
+ rachInd->numPdu = fapiRachInd->numPdus;
+ for(pduIdx=0; pduIdx < rachInd->numPdu; pduIdx++)