hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/lib/dim/net_dim.c
....@@ -227,7 +227,8 @@
227227 dim->start_sample.event_ctr);
228228 if (nevents < DIM_NEVENTS)
229229 break;
230
- dim_calc_stats(&dim->start_sample, &end_sample, &curr_stats);
230
+ if (!dim_calc_stats(&dim->start_sample, &end_sample, &curr_stats))
231
+ break;
231232 if (net_dim_decision(&curr_stats, dim)) {
232233 dim->state = DIM_APPLY_NEW_PROFILE;
233234 schedule_work(&dim->work);