Skip to content
Commit 25125a47 authored by Kamalesh Babulal's avatar Kamalesh Babulal Committed by Tejun Heo
Browse files

cgroup/cpuset: Fix retval in update_cpumask()



The update_cpumask(), checks for newly requested cpumask by calling
validate_change(), which returns an error on passing an invalid set
of cpu(s). Independent of the error returned, update_cpumask() always
returns zero, suppressing the error and returning success to the user
on writing an invalid cpu range for a cpuset. Fix it by returning
retval instead, which is returned by validate_change().

Fixes: 99fe36ba ("cgroup/cpuset: Improve temporary cpumasks handling")
Signed-off-by: default avatarKamalesh Babulal <kamalesh.babulal@oracle.com>
Reviewed-by: default avatarWaiman Long <longman@redhat.com>
Cc: stable@vger.kernel.org # v6.6+
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 66f40b92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment