--- In [email protected], Ravi Mishra <ravics...@...> wrote:
>
> Please help me and provide your suggetion for finding the cause of crash
> dump.
Suggestions:
1. Put comments in your code. Then we (and you) might all have a better chance
of understanding what the code is doing.
2. Use the assert() macro.
3. The following should use a switch.
> if (congInd->congestionStatus ==
> no_congestion_AIS_IEsAIS_TnlCongestionStatus)
The logic doesn't look correct here:
> else if ((congInd->congestionStatus == delay_build_up_...
> {
>
> if(mac->congestionCounter[congInd->macDflow] < mac->steps..
> {
> if(mac->congestionCounter[congInd->macDflow] > 0)
> if(mac->congestionTimerInstance[congInd->macDflow])
> {
> timerStopInst(mac->congestion...
>
> mac->congestionTimerInstance[congInd->macDflow]=NULL;
> }
>
> mac->congestionCounter[congInd->macDflow] += 1 ;
>
> mac->congestionTimerInstance[...] = timerStartInst..
The Instance[] is only set to NULL is Counter[] > 0, so it might be non-NULL
when it reaches the Instance[] = timerStartInst() line.
Are there braces missing?