kernel/lib/dim/rdma_dim.c
.. .. @@ -88,7 +88,8 @@ 88 88 nevents = curr_sample->event_ctr - dim->start_sample.event_ctr; 89 89 if (nevents < DIM_NEVENTS) 90 90 break; 91 - dim_calc_stats(&dim->start_sample, curr_sample, &curr_stats);91 + if (!dim_calc_stats(&dim->start_sample, curr_sample, &curr_stats))92 + break;92 93 if (rdma_dim_decision(&curr_stats, dim)) { 93 94 dim->state = DIM_APPLY_NEW_PROFILE; 94 95 schedule_work(&dim->work);