Skip to content
Snippets Groups Projects
Commit 8bb30798 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Tejun Heo
Browse files

sched_ext: Fixes incorrect type in bpf_scx_init()


The type_id is defined as u32type, if(type_id<0) is invalid, hence
modified its type to s32.

./kernel/sched/ext.c:4958:5-12: WARNING: Unsigned expression compared with zero: type_id < 0.

Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9523


Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 1edab907
No related branches found
No related tags found
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