diff --git a/src/libcrun/io_priority.c b/src/libcrun/io_priority.c index 54bc4aec44..3864f21e80 100644 --- a/src/libcrun/io_priority.c +++ b/src/libcrun/io_priority.c @@ -66,13 +66,13 @@ libcrun_set_io_priority (pid_t pid, runtime_spec_schema_config_schema_process *p class_value = -1; for (i = 0; classes[i].name; i++) - if (strcmp (process->io_priority->class, classes[i].name) == 0) + if (strcmp (process->io_priority->_class, classes[i].name) == 0) { class_value = i; break; } if (UNLIKELY (class_value < 0)) - return crun_make_error (err, 0, "invalid io priority `%s`", process->io_priority->class); + return crun_make_error (err, 0, "invalid io priority `%s`", process->io_priority->_class); value = IOPRIO_PRIO_VALUE (classes[class_value].value, process->io_priority->priority);