- /* Get a temporary buffer to store the msg */
- if (rgAllocSBuf(inst,&tempBuf, rgCb[inst].trcLen) != ROK)
- {
- RLOG0(L_ERROR, "rgAllocSBuf Failed.");
- RETVOID;
- }
-
- /* Copy trcLen nos of bytes from the recvd message */
- if (SCpyMsgFix(srcMbuf,0,rgCb[inst].trcLen,tempBuf,&tempCnt) != ROK)
- {
- RLOG0(L_ERROR, "SCpyMsgFix Failed.");
- RETVOID;
- }
-
- if (SGetMsg(pst.region, pst.pool, &dstMbuf) != ROK)
- {
- RLOG0(L_ERROR, "dstMbuf Allocation Failed");
- RETVOID;
- }
- /* Copy the tempBuf data to dst mBuf */
- if (SCpyFixMsg(tempBuf,dstMbuf,0,rgCb[inst].trcLen,&tempCnt) != ROK)
- {
- RLOG0(L_ERROR, "SCpyFixMsg Failed.");
- RETVOID;
- }
-
- /*ccpu00117052 - MOD - Passing double pointer for proper NULLP
- assignment */
- /* Free the memory allocated for tempBuf */
- rgFreeSBuf(inst,&tempBuf, rgCb[inst].trcLen);
-
- trc.cfm.status = LCM_PRIM_OK;
- trc.cfm.reason = LCM_REASON_NOT_APPL;
- trc.t.trc.evnt = event;
-
- /* Send Trace Indication to Layer manager */
- RgMiLrgTrcInd(&pst, &trc, dstMbuf);
+ /* Get a temporary buffer to store the msg */
+ if (rgAllocSBuf(inst,&tempBuf, rgCb[inst].trcLen) != ROK)
+ {
+ RLOG0(L_ERROR, "rgAllocSBuf Failed.");
+ return;
+ }
+
+ /* Copy trcLen nos of bytes from the recvd message */
+ if (SCpyMsgFix(srcMbuf,0,rgCb[inst].trcLen,tempBuf,&tempCnt) != ROK)
+ {
+ RLOG0(L_ERROR, "SCpyMsgFix Failed.");
+ return;
+ }
+
+ if (SGetMsg(pst.region, pst.pool, &dstMbuf) != ROK)
+ {
+ RLOG0(L_ERROR, "dstMbuf Allocation Failed");
+ return;
+ }
+ /* Copy the tempBuf data to dst mBuf */
+ if (SCpyFixMsg(tempBuf,dstMbuf,0,rgCb[inst].trcLen,&tempCnt) != ROK)
+ {
+ RLOG0(L_ERROR, "SCpyFixMsg Failed.");
+ return;
+ }
+
+ /*ccpu00117052 - MOD - Passing double pointer for proper NULLP
+ assignment */
+ /* Free the memory allocated for tempBuf */
+ rgFreeSBuf(inst,&tempBuf, rgCb[inst].trcLen);
+
+ trc.cfm.status = LCM_PRIM_OK;
+ trc.cfm.reason = LCM_REASON_NOT_APPL;
+ trc.t.trc.evnt = event;
+
+ /* Send Trace Indication to Layer manager */
+ RgMiLrgTrcInd(&pst, &trc, dstMbuf);