]> git.proxmox.com Git - mirror_lxc.git/commitdiff
start: use core scheduling error helper
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 1 Oct 2021 08:14:08 +0000 (10:14 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 1 Oct 2021 08:14:08 +0000 (10:14 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c

index f846af6d16cce27ade57b2841d92f537c604bb20..74931368c2275009edd17b726441e2f49ad9045f 100644 (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",