forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
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);