]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: fix application of sizeof to pointer
authorguanjing <guanjing@cmss.chinamobile.com>
Sun, 17 Nov 2024 02:51:29 +0000 (10:51 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 4 Dec 2024 19:47:39 +0000 (09:47 -1000)
commitf24d192985cbd6782850fdbb3839039da2f0ee76
tree8f4db010911c26334395cf95d4de162852a74cfb
parentef7009decc30eb2515a64253791d61b72229c119
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: 22a920209ab6 ("sched_ext: Implement tickless support")
Signed-off-by: guanjing <guanjing@cmss.chinamobile.com>
Acked-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/sched_ext/scx_central.c