From: Christian Brauner Date: Fri, 1 Oct 2021 08:14:08 +0000 (+0200) Subject: start: use core scheduling error helper X-Git-Tag: lxc-4.0.11~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b95aacb77f3bbdc5cb0c4572606d4a2f6f6d4d8e;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",