From: Mike Yuan Date: Wed, 5 Jun 2024 17:23:40 +0000 (+0200) Subject: core/cgroup: check CGroupRuntime.cgroup_path rather than _realized for freezer X-Git-Tag: v257-rc1~1014^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c97c79aded8d313237e0952062a2cce71fb88eb5;p=thirdparty%2Fsystemd.git core/cgroup: check CGroupRuntime.cgroup_path rather than _realized for freezer The same check is used everywhere else. --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index bb78ded3eb2..9296a5e4acb 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -5134,7 +5134,7 @@ int unit_cgroup_freezer_action(Unit *u, FreezerAction action) { unit_next_freezer_state(u, action, &next, &target); CGroupRuntime *crt = unit_get_cgroup_runtime(u); - if (!crt || !crt->cgroup_realized) { + if (!crt || !crt->cgroup_path) { /* No realized cgroup = nothing to freeze */ u->freezer_state = freezer_state_finish(next); return 0;