Commit 56965ac7 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro

net/sysctl: use cpumask_parse in flow_limit_cpu_sysctl

cpumask_parse_user works on __user pointers, so this is wrong now.

Fixes: 32927393 ("sysctl: pass kernel pointers to ->proc_handler")
Reported-by: default avatarbuild test robot <lkp@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 32927393
...@@ -126,7 +126,7 @@ static int flow_limit_cpu_sysctl(struct ctl_table *table, int write, ...@@ -126,7 +126,7 @@ static int flow_limit_cpu_sysctl(struct ctl_table *table, int write,
return -ENOMEM; return -ENOMEM;
if (write) { if (write) {
ret = cpumask_parse_user(buffer, *lenp, mask); ret = cpumask_parse(buffer, mask);
if (ret) if (ret)
goto done; goto done;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment