start: use core scheduling error helper

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2021-10-01 10:14:08 +02:00
parent 565b6e92d3
commit f18a595926
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -1573,7 +1573,7 @@ static int core_scheduling(struct lxc_handler *handler)
}
conf->sched_core_cookie = core_scheduling_cookie_get(handler->pid);
if (conf->sched_core_cookie == INVALID_SCHED_CORE_COOKIE)
if (!core_scheduling_cookie_valid(conf->sched_core_cookie))
return syserror("Failed to retrieve core scheduling domain cookie");
TRACE("Created new core scheduling domain with cookie %llu",