Commit f24d1929 authored by guanjing's avatar guanjing Committed by Tejun Heo
Browse files

sched_ext: fix application of sizeof to pointer



sizeof when applied to a pointer typed expression gives the size of
the pointer.

The proper fix in this particular case is to code sizeof(*cpuset)
instead of sizeof(cpuset).

This issue was detected with the help of Coccinelle.

Fixes: 22a92020 ("sched_ext: Implement tickless support")
Signed-off-by: default avatarguanjing <guanjing@cmss.chinamobile.com>
Acked-by: default avatarAndrea Righi <arighi@nvidia.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent ef7009de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment