mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-18 11:51:09 +00:00
BACKPORT: net/sysctl: use cpumask_parse in flow_limit_cpu_sysctl
cpumask_parse_user works on __user pointers, so this is wrong now.
Fixes: 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler")
Reported-by: build test robot <lkp@intel.com>
Change-Id: I23638a1f5b7f978b5bb407a9fbf868294ed43c4c
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
committed by
Nolen Johnson
parent
d6b57bec48
commit
fb7aa3f011
@ -119,7 +119,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user