]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpuset: fix missing error return in update_cpumask
authorChen Ridong <chenridong@huawei.com>
Fri, 19 Sep 2025 09:49:03 +0000 (09:49 +0000)
committerTejun Heo <tj@kernel.org>
Fri, 19 Sep 2025 16:43:27 +0000 (06:43 -1000)
commit51840f7ba393dce7624a759cc4cee8c2bedf9068
treeff6538d4bce00046de2dbf356ac720fa91a08ada
parent59d5de3655698679ad8fd2cc82228de4679c4263
cpuset: fix missing error return in update_cpumask

The commit c6366739804f ("cpuset: refactor cpus_allowed_validate_change")
inadvertently removed the error return when cpus_allowed_validate_change()
fails. This patch restores the proper error handling by returning retval
when the validation check fails.

Fixes: c6366739804f ("cpuset: refactor cpus_allowed_validate_change")
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c