ve0 doesn't exist when !CONFIG_VE, use get_ve0().

https://virtuozzo.atlassian.net/browse/VSTOR-130116

Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <[email protected]>
---
 kernel/cgroup/cgroup-v1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c
index e4ef76e4bde6..5c1b6a24ed51 100644
--- a/kernel/cgroup/cgroup-v1.c
+++ b/kernel/cgroup/cgroup-v1.c
@@ -581,7 +581,7 @@ static ssize_t cgroup_release_agent_write(struct 
kernfs_open_file *of,
        root_cgrp = cgroup_ve_root1(cgrp);
        if (!root_cgrp) {
                if (ve_is_super(get_exec_env()) && cgrp == &cgrp->root->cgrp)
-                       ve = &ve0;
+                       ve = get_ve0();
        } else {
                if (root_cgrp == cgrp)
                        ve = rcu_dereference(root_cgrp->ve_owner);
@@ -612,7 +612,7 @@ static int cgroup_release_agent_show(struct seq_file *seq, 
void *v)
        root_cgrp = cgroup_ve_root1(cgrp);
        if (!root_cgrp) {
                if (ve_is_super(get_exec_env()) && cgrp == &cgrp->root->cgrp)
-                       ve = &ve0;
+                       ve = get_ve0();
        } else {
                if (root_cgrp == cgrp)
                        ve = rcu_dereference(root_cgrp->ve_owner);
-- 
2.47.1

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to