diff options
author | Kees Cook <keescook@chromium.org> | 2015-09-08 14:58:22 -0700 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2016-06-24 21:31:54 +0800 |
commit | 8a5f8dc0279656aa672ac4e7092c3250820220b6 (patch) | |
tree | a2edec328d2e4f7a7cef4686c296e55acc3b69ff | |
parent | b39b4806d1b97b439bf18c3cb8729e5d9fe032bb (diff) |
cgroup: fix seq_show_option merge with legacy_name
When seq_show_option (commit a068acf2ee77: "fs: create and use
seq_show_option for escaping") was merged, it did not correctly collide
with cgroup's addition of legacy_name (commit 3e1d2eed39d8: "cgroup:
introduce cgroup_subsys->legacy_name") changes.
This fixes the reported name.
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 61e57c0c3a37539e13af03ce68598034d37c7256)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 862402d32ab0..53a4b27bf3c5 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -1587,7 +1587,7 @@ static int cgroup_show_options(struct seq_file *seq, if (root != &cgrp_dfl_root) for_each_subsys(ss, ssid) if (root->subsys_mask & (1 << ssid)) - seq_show_option(seq, ss->name, NULL); + seq_show_option(seq, ss->legacy_name, NULL); if (root->flags & CGRP_ROOT_NOPREFIX) seq_puts(seq, ",noprefix"); if (root->flags & CGRP_ROOT_XATTR) |