Feng Jiang c47a80cd14 exynos: Fix out-of-bounds access in exynos4210_gcomp_find debug printf
One of the debug printfs in exynos4210_gcomp_find() will
access outside the 's->g_timer.reg.comp[]' array if there
was no active comparator and 'res' is -1. Add a conditional
to avoid this.

This doesn't happen in normal use because the debug printfs
are by default not compiled in.

Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
Message-id: 20230404074506.112615-1-jiangfeng@kylinos.cn
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: Adjusted commit message to clarify that the overrun
only happens if you've enabled debug printfs]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2023-04-20 10:21:13 +01:00
..
2023-02-08 07:28:05 +01:00
2023-03-24 11:45:46 +01:00
2023-03-13 22:57:39 +04:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-03-24 11:45:33 +01:00
2023-03-20 12:43:50 +01:00
2023-03-10 14:31:37 +00:00
2023-03-09 10:22:50 +00:00
2023-03-28 13:10:55 +08:00
2023-04-12 12:03:09 +02:00
2023-03-03 17:11:22 +00:00
2023-03-11 17:17:18 +00:00
2023-02-08 07:28:05 +01:00
2023-02-08 07:28:05 +01:00
2023-03-20 12:43:50 +01:00
2022-10-27 11:34:31 +01:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-02-27 22:29:02 +01:00
2023-03-20 12:43:50 +01:00