Andrew Goodbody fe8d071c49 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 <andrew.goodbody@linaro.org>
Link: https://lore.kernel.org/r/20250901-cadence_pwm-v1-1-140b04cd73a9@linaro.org
Signed-off-by: Michal Simek <michal.simek@amd.com>
2025-10-09 09:07:03 +02:00
..
2025-07-10 08:41:03 -06:00
2025-08-26 07:30:09 +02:00
2025-06-02 17:26:16 -06:00
2025-09-19 08:08:11 -06:00
2025-10-08 13:54:58 -06:00
2025-08-27 15:49:59 +08:00
2025-08-25 13:28:49 -06:00
2025-09-08 10:37:22 -06:00
2025-08-14 10:58:46 -06:00
2025-10-06 13:20:24 -06:00