Merge tag 'sched-urgent-2024-05-18' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / kernel / cgroup / cpuset.c
index a10e4bd0c0c16caf623a511d49a4b86668add570..c12b9fdb22a4e3105f789a07e3ddbef9d1c375b9 100644 (file)
@@ -2941,7 +2941,7 @@ bool current_cpuset_is_being_rebound(void)
 static int update_relax_domain_level(struct cpuset *cs, s64 val)
 {
 #ifdef CONFIG_SMP
-       if (val < -1 || val >= sched_domain_level_max)
+       if (val < -1 || val > sched_domain_level_max + 1)
                return -EINVAL;
 #endif