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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ static int flow_limit_cpu_sysctl(struct ctl_table *table, int write,
		return -ENOMEM;

	if (write) {
		ret = cpumask_parse_user(buffer, *lenp, mask);
		ret = cpumask_parse(buffer, mask);
		if (ret)
			goto done;