hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/resctrl/mba_test.c
....@@ -28,6 +28,7 @@
2828 struct resctrl_val_param *p;
2929 char allocation_str[64];
3030 va_list param;
31
+ int ret;
3132
3233 va_start(param, num);
3334 p = va_arg(param, struct resctrl_val_param *);
....@@ -45,7 +46,11 @@
4546
4647 sprintf(allocation_str, "%d", allocation);
4748
48
- write_schemata(p->ctrlgrp, allocation_str, p->cpu_no, p->resctrl_val);
49
+ ret = write_schemata(p->ctrlgrp, allocation_str, p->cpu_no,
50
+ p->resctrl_val);
51
+ if (ret < 0)
52
+ return ret;
53
+
4954 allocation -= ALLOCATION_STEP;
5055
5156 return 0;