Re: [PATCH v3] sched_ext: fix application of sizeof to pointer
From: Tejun Heo
Date: Wed Dec 04 2024 - 14:48:38 EST
On Sun, Nov 17, 2024 at 10:51:29AM +0800, guanjing wrote:
> 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@xxxxxxxxxxxxxxxxxxxx>
Applied to sched_ext/for-6.13-fixes.
Thanks.
--
tejun