kernel/tools/testing/selftests/resctrl/mba_test.c
.. .. @@ -28,6 +28,7 @@ 28 28 struct resctrl_val_param *p; 29 29 char allocation_str[64]; 30 30 va_list param; 31 + int ret;31 32 32 33 va_start(param, num); 33 34 p = va_arg(param, struct resctrl_val_param *); .. .. @@ -45,7 +46,11 @@ 45 46 46 47 sprintf(allocation_str, "%d", allocation); 47 48 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 +49 54 allocation -= ALLOCATION_STEP; 50 55 51 56 return 0;