[lxc-devel] [lxc/stable-4.0] commands: fix wrong function used by get_cgroup

lifeng68 on Github lxc-bot at linuxcontainers.org
Thu Jul 2 12:59:13 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 346 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200702/16d73401/attachment.bin>
-------------- next part --------------
From 9d06d6024857b7b91b8ad6993e7db3229aecb646 Mon Sep 17 00:00:00 2001
From: lifeng68 <lifeng68 at huawei.com>
Date: Thu, 2 Jul 2020 20:58:09 +0800
Subject: [PATCH] commands: fix wrong function used by get_cgroup

Signed-off-by: lifeng68 <lifeng68 at huawei.com>
---
 src/lxc/commands.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lxc/commands.c b/src/lxc/commands.c
index b6ae101fc3..0c54ff5ada 100644
--- a/src/lxc/commands.c
+++ b/src/lxc/commands.c
@@ -592,8 +592,8 @@ static int lxc_cmd_get_cgroup_callback_do(int fd, struct lxc_cmd_req *req,
 		reqdata = NULL;
 	}
 
-	get_fn = (limiting_cgroup ? cgroup_ops->get_cgroup
-				  : cgroup_ops->get_limiting_cgroup);
+	get_fn = (limiting_cgroup ? cgroup_ops->get_limiting_cgroup
+				  : cgroup_ops->get_cgroup);
 
 	path = get_fn(cgroup_ops, reqdata);
 


More information about the lxc-devel mailing list