diff options
| author | Andrew Goodbody <[email protected]> | 2025-09-01 18:00:12 +0100 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2025-10-09 09:07:03 +0200 |
| commit | fe8d071c49845c6ad1a387762f048ef158326580 (patch) | |
| tree | 333dd5cd1ee1eb8ae274388ef839166a2a804295 /doc/develop/bootstd | |
| parent | 4146a31dcec709058a8e793b86712b0ffa1ba15a (diff) | |
pwm: cadence-ttc: Insufficient elements in array
The Cadence TTC has 3 channels that can each be used for PWM functions.
Ensure that the array has sufficient elements to avoid a possible memory
access overrun. Use a macro to keep the array size and limit checks in
sync so adjust checks to work with this.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'doc/develop/bootstd')
0 files changed, 0 insertions, 0 deletions
