Andrew Goodbody
da13ce8a6b
clk: at91: Fix use of unsigned loop index
...
The use of the unsigned variable 'i' as a loop index leads to the test
for i being non-negative always being true. Instead declare 'i' as an
int so that the for loop will terminate as expected.
If the original for loop completes 'i' will be 1 past the end of the
array so decrement it in the subsequent error path to prevent an out of
bounds access occurring.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org >
2025-08-13 12:59:36 +03:00
..
2025-07-24 08:00:08 -03:00
2025-07-10 08:41:03 -06:00
2025-07-29 13:14:47 -06:00
2025-07-26 07:34:28 +02:00
2025-02-14 10:19:24 -06:00
2025-04-11 12:16:44 -06:00
2025-06-02 18:20:33 +02:00
2025-07-03 18:11:06 +08:00
2025-08-13 12:59:36 +03:00
2025-07-24 11:49:18 -06:00
2025-05-03 16:55:32 -03:00
2025-07-11 11:33:25 -06:00
2025-07-29 08:44:18 +02:00
2025-07-16 10:56:28 -06:00
2025-07-10 08:40:52 -06:00
2025-07-22 11:30:14 -06:00
2025-07-24 09:06:52 +02:00
2025-07-24 08:54:15 +02:00
2025-06-02 17:26:16 -06:00
2025-07-24 08:54:16 +02:00
2025-07-16 09:20:13 +02:00
2025-07-18 12:22:09 -06:00
2025-06-14 09:11:10 -06:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00
2025-03-13 14:23:05 -06:00
2025-07-24 13:30:20 -06:00
2025-07-27 22:57:35 +01:00
2025-07-01 10:43:03 -06:00
2025-04-11 12:16:49 -06:00
2025-07-24 13:30:20 -06:00
2025-07-10 08:41:23 -06:00
2025-07-14 15:16:48 -06:00
2025-07-08 16:19:31 -06:00
2025-07-25 10:17:21 +09:00
2025-07-27 22:57:35 +01:00
2025-07-27 22:57:35 +01:00
2025-06-12 16:26:56 -06:00
2025-06-20 12:15:08 -06:00
2025-06-14 09:10:48 -06:00
2025-07-24 11:49:18 -06:00
2025-06-11 09:42:55 +02:00
2025-04-23 22:12:04 +08:00
2025-06-25 13:42:04 -06:00
2025-07-14 15:16:43 -06:00
2025-07-10 08:02:11 -03:00
2025-04-03 11:37:46 -06:00
2025-06-14 09:09:39 -06:00
2025-08-13 12:59:02 +03:00
2025-04-10 15:43:10 +02:00
2025-02-28 08:41:54 -06:00
2025-07-23 17:37:11 -06:00
2025-04-11 12:16:44 -06:00
2025-06-10 19:30:00 +03:00
2025-04-16 13:42:06 +02:00
2025-07-25 10:17:21 +09:00
2025-06-14 09:10:48 -06:00
2025-06-02 17:26:16 -06:00
2025-07-10 08:02:11 -03:00
2025-07-14 08:54:19 -06:00
2025-04-11 12:16:44 -06:00