diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-05-22 18:17:49 -0700 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-01 15:59:15 +0100 |
| commit | 36cf16513f9dfc6dc5eee7ed5ca5fd4f649e1f1a (patch) | |
| tree | 7c67b380fb1e2e8823564947e8c9bb499a7768ee /include/linux/timerqueue.h | |
| parent | 3a129981440fbba4ce0219069fdf257fa2fbc2ab (diff) | |
ASoC: aw88395: use struct_size() and __counted_by() for aw_container
The firmware container allocations passed cont->size + sizeof(int) to
kzalloc(), which was wrong: the struct contains an int len followed by a
u8 data[] flexible array. It ended up being the same as the struct's
size is only the int member but still wrong.
Use the modern struct_size helper for this.
Add __counted_by for extra runtime analysis.
Assisted-by: Claude:Opus-4.7
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260523011749.101555-1-rosenp@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
