From: Christian Brauner Date: Fri, 1 Oct 2021 08:14:08 +0000 (+0200) Subject: start: use core scheduling error helper X-Git-Tag: lxc-5.0.0~79^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f18a59592619fb0b6d436b5c4ffd0c2c84bea826;p=thirdparty%2Flxc.git start: use core scheduling error helper Signed-off-by: Christian Brauner --- diff --git a/src/lxc/start.c b/src/lxc/start.c index f846af6d1..74931368c 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -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",