[PATCH 2/2] cpuset: return the return value of cgroup_path() to userspace

Li Zefan
2013-01-15T06:12:44Z

-EINVAL is improper, as we don't accept user inputs.

Signed-off-by: Li Zefan <lizefan@huawei.com>
---
kernel/cpuset.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 1a675e4..16be7c9 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -2677,7 +2677,6 @@ static int proc_cpuset_show(struct seq_file *m, void *unused_v)
if (!tsk)
goto out_free;

- retval = -EINVAL;
rcu_read_lock();