hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/lib/dim/rdma_dim.c
....@@ -88,7 +88,8 @@
8888 nevents = curr_sample->event_ctr - dim->start_sample.event_ctr;
8989 if (nevents < DIM_NEVENTS)
9090 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;
9293 if (rdma_dim_decision(&curr_stats, dim)) {
9394 dim->state = DIM_APPLY_NEW_PROFILE;
9495 schedule_work(&dim->work);