]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: idle: Fix errno loss in scx_idle_init()
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Mon, 25 May 2026 17:22:31 +0000 (01:22 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 27 May 2026 18:20:59 +0000 (08:20 -1000)
commit6bf8973ddeeec0ead87b0dfe9a3ae6072432e334
tree29226192ab43a71da18e923a43c3636d7d52ab6a
parentabdc2516f100d8f9e637a49e4fdfd2d09a318680
sched_ext: idle: Fix errno loss in scx_idle_init()

|| is a boolean operator, any nonzero (error) return short-circuits
to 1 rather than the actual errno. The caller in scx_init() logs and
propagates this value, so the wrong code reaches upper layers.

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext_idle.c