mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 05:59:00 +00:00
cgroups: move variable into tighter scope
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
81b5d48a34
commit
779b3d82e6
@ -1912,12 +1912,10 @@ __cgfsng_ops static int cgfsng_nrtasks(struct cgroup_ops *ops)
|
|||||||
__cgfsng_ops static bool cgfsng_escape(const struct cgroup_ops *ops,
|
__cgfsng_ops static bool cgfsng_escape(const struct cgroup_ops *ops,
|
||||||
struct lxc_conf *conf)
|
struct lxc_conf *conf)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
|
|
||||||
if (conf->cgroup_meta.relative || geteuid() || !ops->hierarchies)
|
if (conf->cgroup_meta.relative || geteuid() || !ops->hierarchies)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
for (i = 0; ops->hierarchies[i]; i++) {
|
for (int i = 0; ops->hierarchies[i]; i++) {
|
||||||
int ret;
|
int ret;
|
||||||
__do_free char *fullpath = NULL;
|
__do_free char *fullpath = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user